Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul GML highlighting #4184

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
d88ae9d
feat(gml) proper grammar over keyword list!
thennothinghappened Dec 14, 2024
1f7f55e
feat(gml) support all GML jsdoc annotations
thennothinghappened Dec 14, 2024
b3c9877
fix(gml) start untangling oddities from GM manual
thennothinghappened Dec 14, 2024
ed25ada
fix(gml) manual untangling pt2
thennothinghappened Dec 14, 2024
1b5c513
fix(gml) change oddities resolved
thennothinghappened Dec 14, 2024
7b2550a
fix(gml) final remaining incorrect symbols
thennothinghappened Dec 14, 2024
e974803
fix(gml) correct built-ins highlight type
thennothinghappened Dec 14, 2024
de0affb
fix(gml) `gml.css` updates for lang changes
thennothinghappened Dec 14, 2024
d55c5c8
fix(gml) use `property` scope for prop access
thennothinghappened Dec 14, 2024
3046802
fix(gml) more accurate jsdoc highlighting
thennothinghappened Dec 14, 2024
d9fc974
fix(gml) update test for GML highlighting output
thennothinghappened Dec 14, 2024
b221433
docs(gml) update `gml.js` info banner
thennothinghappened Dec 14, 2024
a6fb18f
docs(gml) fix incorrect desc. on `lateConcat`
thennothinghappened Dec 14, 2024
4e5ff27
refactor(gml) regex naming conventions
thennothinghappened Dec 14, 2024
e057d42
refactor(gml) prefer `scope` over `className`
thennothinghappened Dec 14, 2024
3b0d288
fix(gml) prefer `$` over `\n` where applicable
thennothinghappened Dec 14, 2024
78afe09
fix(gml) more specific scope for function decl
thennothinghappened Dec 14, 2024
6cd62fb
fix(gml) `title.function` is scope not match
thennothinghappened Dec 14, 2024
c167592
fix(gml) `function` keyword stealing function decl
thennothinghappened Dec 14, 2024
3c4b636
fix(gml) other instances of `function` -> `title.function`
thennothinghappened Dec 14, 2024
e6e40cd
fix(gml) update `gml.css` theme to colour func changes
thennothinghappened Dec 14, 2024
be3d944
fix(gml) correct scopes for jsdoc tags
thennothinghappened Dec 14, 2024
12ec813
fix(gml) correct doctype tag for `@returns`
thennothinghappened Dec 14, 2024
31b3fc0
fix(gml) constants not as literals
thennothinghappened Dec 14, 2024
d011d6a
fix(gml) function invokation more specific
thennothinghappened Dec 14, 2024
a9a005e
fix(gml) escapes should be `char.escape`
thennothinghappened Dec 14, 2024
088ace7
fix(gml) numbers are numbers!
thennothinghappened Dec 14, 2024
64dc5b6
fix(gml) instance vars are just variables
thennothinghappened Dec 14, 2024
57c830f
fix(gml) redundant case sensitivity decl
thennothinghappened Dec 14, 2024
15ad0c4
fix(gml) string template `{}` is `subst`
thennothinghappened Dec 14, 2024
448a624
refactor(gml) remove unneeded `lateConcat` util
thennothinghappened Dec 15, 2024
6bc0f85
fix(gml) numerical string templates are `subst`
thennothinghappened Dec 15, 2024
f223bdb
fix(gml) preproc is `meta`
thennothinghappened Dec 15, 2024
5d4d029
fix(gml) `gml.css` theme various colour fixes
thennothinghappened Dec 15, 2024
74c324c
fix(gml) built ins not being highlighted in expr
thennothinghappened Dec 15, 2024
bb1789f
feat(gml) much more extensive test
thennothinghappened Dec 15, 2024
0a00d16
fix(gml) don't match string chars one by one
thennothinghappened Dec 15, 2024
6d70f6f
fix(gml) update test accordingly to string change
thennothinghappened Dec 15, 2024
aa00826
fix(gml) remove useless `global` special `.` case
thennothinghappened Dec 15, 2024
71a5d32
Merge branch 'highlightjs:main' into main
thennothinghappened Dec 15, 2024
38c63e6
fix(gml) chuck out redundant `?` on optional spaces
thennothinghappened Dec 15, 2024
a1097fd
fix(gml) remove obsolete `#define` keyword
thennothinghappened Dec 15, 2024
5221c23
fix(gml) template strings cannot contain newlines
thennothinghappened Dec 15, 2024
1b9cecf
feat(gml) fine tune some relevances
thennothinghappened Dec 15, 2024
66e9ef6
fix(gml) `@""` strings are not unique actually!
thennothinghappened Dec 15, 2024
0fd9d05
fix(gml) nest `subst` scope instead of workaround
thennothinghappened Dec 16, 2024
1f0bcc4
fix(gml) jsdoc `@param` varname as `params`
thennothinghappened Dec 16, 2024
a746ca1
fix(gml) update theme for jsdoc changes
thennothinghappened Dec 16, 2024
1507cf2
fix(gml) update markup test
thennothinghappened Dec 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(gml) numbers are numbers!
  • Loading branch information
thennothinghappened committed Dec 14, 2024
commit 088ace74295bac339a0c590aac4f2322a5d01f0a
2 changes: 1 addition & 1 deletion src/languages/gml.js
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ export default function(hljs) {
* Various representations of numbers
*/
const NUMBER = {
scope: "literal",
scope: "number",
variants: [
{ match: /(\B|^)\$[0-9a-fA-F]+/ },
{ match: /(\B|^)#[0-9a-fA-F]+/ },
Expand Down