Skip to content

Commit 9fff771

Browse files
committed
slightly corrected highlighting definitions in new .sublime-color-scheme files
1 parent 86e62bc commit 9fff771

File tree

2 files changed

+44
-14
lines changed

2 files changed

+44
-14
lines changed

Brackets Dark.sublime-color-scheme

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@
128128
"foreground": "var(green)"
129129
},
130130
{
131-
"name": "HTML declaration tag",
132-
"scope": "meta.tag.sgml.html punctuation.definition.tag.html, entity.name.tag.doctype.html, string.quoted.double.doctype.identifiers-and-DTDs.html",
131+
"name": "HTML/XML declaration tag",
132+
"scope": "entity.name.tag.doctype.html, text.xml meta.tag.preprocessor.xml punctuation.definition.tag.end.xml, text.xml meta.tag.sgml.doctype.xml punctuation.definition.tag.end.xml, text.xml meta.tag.preprocessor.xml entity.other.attribute-name.localname.xml",
133133
"foreground": "var(white)"
134134
},
135135
// CSS specific rules
@@ -198,31 +198,46 @@
198198
"font_style": "italic"
199199
},
200200
{
201-
"name": "LaTeX labels and references",
202-
"scope": "entity.name.label.latex, constant.other.reference.latex",
201+
"name": "LaTeX labels, references and citations",
202+
"scope": "entity.name.label.latex, constant.other.reference.latex, constant.other.citation.latex",
203203
"foreground": "var(violet)",
204204
"font_style": "italic"
205205
},
206+
{
207+
"name": "LaTeX numeric literals",
208+
"scope": "text.tex.latex constant.numeric",
209+
"foreground": "var(white)"
210+
},
206211
{
207212
"name": "LaTeX inline math punctuations",
208213
"scope": "string.other.math.latex",
209214
"foreground": "var(green)"
210215
},
211216
{
212217
"name": "LaTeX parenthesis",
213-
"scope": "constant.character.parenthesis.tex",
218+
"scope": "constant.character.parenthesis.tex, constant.character.bracket.tex",
214219
"foreground": "var(white)"
215220
},
216221
{
217-
"name": "LaTeX whitespace keywords",
218-
"scope": "constant.character.escape.tex",
222+
"name": "LaTeX brace character",
223+
"scope": "constant.character.brace.escape.tex",
224+
"foreground": "var(blue)"
225+
},
226+
{
227+
"name": "LaTeX whitespace characters",
228+
"scope": "constant.character.space.tex, constant.character.escape.tex",
219229
"foreground": "var(blue)"
220230
},
221231
{
222232
"name": "LaTeX array delimiters",
223233
"scope": "constant.character.ampersand.tex, constant.character.newline.latex",
224234
"foreground": "var(blue)"
225235
},
236+
{
237+
"name": "LaTeX user command declarations",
238+
"scope": "support.function.latex entity.name.newcommand",
239+
"foreground": "var(blue)"
240+
},
226241
// GitGutter rules
227242
{
228243
"name": "GitGutter deleted",

Brackets Light.sublime-color-scheme

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@
128128
"foreground": "var(green)"
129129
},
130130
{
131-
"name": "HTML declaration tag",
132-
"scope": "meta.tag.sgml.html punctuation.definition.tag.html, entity.name.tag.doctype.html, string.quoted.double.doctype.identifiers-and-DTDs.html",
131+
"name": "HTML/XML declaration tag",
132+
"scope": "entity.name.tag.doctype.html, text.xml meta.tag.preprocessor.xml punctuation.definition.tag.end.xml, text.xml meta.tag.sgml.doctype.xml punctuation.definition.tag.end.xml, text.xml meta.tag.preprocessor.xml entity.other.attribute-name.localname.xml",
133133
"foreground": "var(grey2)"
134134
},
135135
// CSS specific rules
@@ -198,31 +198,46 @@
198198
"font_style": "italic"
199199
},
200200
{
201-
"name": "LaTeX labels and references",
202-
"scope": "entity.name.label.latex, constant.other.reference.latex",
201+
"name": "LaTeX labels, references and citations",
202+
"scope": "entity.name.label.latex, constant.other.reference.latex, constant.other.citation.latex",
203203
"foreground": "var(violet)",
204204
"font_style": "italic"
205205
},
206+
{
207+
"name": "LaTeX numeric literals",
208+
"scope": "text.tex.latex constant.numeric",
209+
"foreground": "var(grey2)"
210+
},
206211
{
207212
"name": "LaTeX inline math punctuations",
208213
"scope": "string.other.math.latex",
209214
"foreground": "var(green)"
210215
},
211216
{
212217
"name": "LaTeX parenthesis",
213-
"scope": "constant.character.parenthesis.tex",
218+
"scope": "constant.character.parenthesis.tex, constant.character.bracket.tex",
214219
"foreground": "var(grey2)"
215220
},
216221
{
217-
"name": "LaTeX whitespace keywords",
218-
"scope": "constant.character.escape.tex",
222+
"name": "LaTeX brace character",
223+
"scope": "constant.character.brace.escape.tex",
224+
"foreground": "var(blue)"
225+
},
226+
{
227+
"name": "LaTeX whitespace characters",
228+
"scope": "constant.character.space.tex, constant.character.escape.tex",
219229
"foreground": "var(blue)"
220230
},
221231
{
222232
"name": "LaTeX array delimiters",
223233
"scope": "constant.character.ampersand.tex, constant.character.newline.latex",
224234
"foreground": "var(blue)"
225235
},
236+
{
237+
"name": "LaTeX user command declarations",
238+
"scope": "support.function.latex entity.name.newcommand",
239+
"foreground": "var(blue)"
240+
},
226241
// GitGutter rules
227242
{
228243
"name": "GitGutter deleted",

0 commit comments

Comments
 (0)