Skip to content

Commit

Permalink
Remove italic from character class literals. #8
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Jan 28, 2024
1 parent 95e2ce3 commit ba4007b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions syntaxes/regex.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@
{ "include": "#character-class-escape" },
{ "include": "#character-class-posix" },
{ "include": "#character-class" },
{ "include": "#character-class-regex" }
{ "include": "#character-class-literal" }
]
},
"character-class-escape": {
Expand All @@ -894,50 +894,50 @@
"match": "\\G(\\\\{2})([]-])",
"captures": {
"1": { "name": "punctuation.definition.tag.tm" },
"2": { "name": "markup.italic regex" }
"2": { "name": "literal.tm regex" }
}
},
{
"match": "\\G(\\\\{2})(\\^|:)",
"captures": {
"1": { "name": "constant.character.escape.tm" },
"2": { "name": "markup.italic" }
"2": { "name": "literal.tm" }
}
},
{
"match": "(\\\\{3})(\\\\)",
"captures": {
"1": { "name": "constant.character.escape.tm" },
"2": { "name": "markup.italic" }
"2": { "name": "literal.tm" }
}
},
{
"match": "(\\\\{2})(-)(?=])",
"captures": {
"1": { "name": "punctuation.definition.tag.tm" },
"2": { "name": "markup.italic" }
"2": { "name": "literal.tm" }
}
},
{
"match": "(\\\\{2})([]\\[-]|:(?=]))",
"captures": {
"1": { "name": "constant.character.escape.tm" },
"2": { "name": "markup.italic regex" }
"2": { "name": "literal.tm regex" }
}
},
{
"match": "(\\\\{2})(&)(?=&)",
"captures": {
"1": { "name": "constant.character.escape.tm" },
"2": { "name": "markup.italic" }
"2": { "name": "literal.tm" }
}
},
{
"match": "(&)(\\\\{2})(&)",
"captures": {
"1": { "name": "markup.italic" },
"1": { "name": "literal.tm" },
"2": { "name": "constant.character.escape.tm" },
"3": { "name": "markup.italic" }
"3": { "name": "literal.tm" }
}
},
{
Expand All @@ -954,7 +954,7 @@
"match": "(\\\\)(/)",
"captures": {
"1": { "name": "punctuation.definition.tag.tm" },
"2": { "name": "markup.italic" }
"2": { "name": "literal.tm" }
}
},
{
Expand Down Expand Up @@ -1114,7 +1114,7 @@
{ "include": "#code-point" },
{ "include": "#character-class-escape" },
{ "include": "#character-class-posix" },
{ "include": "#character-class-regex" }
{ "include": "#character-class-literal" }
]
}
]
Expand Down Expand Up @@ -1142,10 +1142,10 @@
}
]
},
"character-class-regex": {
"character-class-literal": {
"comment": "Match anything left over and all non-meta charaters",
"match": ".(?>[^]\\x0-\\x1F\"&:\\[\\\\\\x7F-]+(?!-))?",
"name": "markup.italic regex"
"name": "literal.tm regex"
},
"character-class-range-code-point": {
"comment": "\\o{37777777777 0 1777777} \\x{FFFFFFFF 0 1FFFFF}",
Expand Down

0 comments on commit ba4007b

Please sign in to comment.