Skip to content

Commit

Permalink
Made the syntax highlighters more tolerant.
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere committed Dec 2, 2024
1 parent 77abd6a commit 6c4d4db
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
18 changes: 13 additions & 5 deletions syntaxes/ice.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@
],

"patterns": [
{"include": "#comment"},
{"include": "#preprocessor"},
{"include": "#metadata.global"},
{"include": "#storage.module"}
{"include": "#standard"},
{"include": "#metadata"},
{"include": "#constant"},
{"include": "#storage.module"},
{"include": "#storage.enum"},
{"include": "#storage.struct"},
{"include": "#storage.sequence"},
{"include": "#storage.dictionary"},
{"include": "#storage.interface"},
{"include": "#storage.exception"},
{"include": "#storage.class"},
{"include": "#storage.operation"}
],

"repository": {
Expand Down Expand Up @@ -68,9 +76,9 @@

"preprocessor": {
"patterns": [
{"include": "#preprocessor.if"},
{"include": "#preprocessor.ifdef"},
{"include": "#preprocessor.ifndef"},
{"include": "#preprocessor.if"},
{"include": "#preprocessor.elif"},
{"include": "#preprocessor.else"},
{"include": "#preprocessor.endif"},
Expand Down
10 changes: 8 additions & 2 deletions syntaxes/slice.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"slice": {
"patterns": [
{"include": "#standard"},
{"include": "#string-literal"},
{"include": "#compilation-mode"},
{"include": "#module-declaration"},
{"include": "#struct"},
Expand All @@ -24,6 +25,7 @@
{"include": "#custom-type"},
{"include": "#type-alias"},
{"include": "#modifier-keywords"},
{"include": "#operation"},
{"include": "#type.identifier"}
]
},
Expand Down Expand Up @@ -818,6 +820,11 @@
"beginCaptures": {
"0": {"name": "punctuation.brace.open.slice"}
},
"patterns": [
{"include": "#slice"}
]
},
"operation": {
"patterns": [
{"include": "#tag"},
{
Expand Down Expand Up @@ -885,8 +892,7 @@
"patterns": [{"include": "#field.identifier"}]
}
}
},
{"include": "#slice"}
}
]
},
"parameter": {
Expand Down

0 comments on commit 6c4d4db

Please sign in to comment.