Skip to content

Commit

Permalink
fix(gml) prefer $ over \n where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
thennothinghappened committed Dec 14, 2024
1 parent e057d42 commit 3b0d288
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/languages/gml.js
Original file line number Diff line number Diff line change
@@ -1091,7 +1091,7 @@ export default function(hljs) {
/**
* A single-line comment.
*/
const COMMENT_LINE = hljs.COMMENT('//', /\$|\n/);
const COMMENT_LINE = hljs.COMMENT('//', /$/);

const JSDOC_TYPE_PARAM_RE = /{ *?[a-zA-Z_][a-zA-Z0-9_\.<>\|]*? *?} *?/;

@@ -1143,7 +1143,7 @@ export default function(hljs) {
*/
const COMMENT_JSDOC = {
begin: /\/\/\//,
end: /$|\n/,
end: /$/,
scope: "comment",
contains: JSDOC_ANNOTATIONS
};
@@ -1446,7 +1446,7 @@ export default function(hljs) {
VALID_IDENTIFIER_RE,
/\s*=\s*/
],
end: /,|\n|}/,
end: /,|$|}/,
scope: {
1: "literal"
},

0 comments on commit 3b0d288

Please sign in to comment.