Skip to content

Commit

Permalink
renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
ngc92 committed Nov 18, 2022
1 parent d3fcbff commit d789979
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
42 changes: 21 additions & 21 deletions LaTeX/LaTeX.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ contexts:
3: punctuation.definition.group.brace.begin.latex
push:
- meta_scope: meta.include.latex
- include: brace-pop
- include: brace-group-end

sections:
- match: |-
Expand Down Expand Up @@ -335,7 +335,7 @@ contexts:
push:
- meta_scope: meta.section.latex
- meta_content_scope: entity.name.section.latex
- include: brace-pop
- include: brace-group-end
- include: main
structure:
Expand Down Expand Up @@ -444,7 +444,7 @@ contexts:
scope: punctuation.definition.group.brace.begin.latex
push:
- meta_scope: meta.group.brace.latex
- include: brace-pop
- include: brace-group-end
- include: math-content

math-content:
Expand All @@ -466,7 +466,7 @@ contexts:
push:
- meta_scope: meta.function.ensuremath.latex
- meta_content_scope: meta.environment.math.inline.ensuremath.latex
- include: brace-pop
- include: brace-group-end
- include: math-content

- match: (\\\()
Expand Down Expand Up @@ -560,7 +560,7 @@ contexts:
push:
- meta_scope: meta.function.emph.latex
- meta_content_scope: markup.italic.emph.latex
- include: brace-pop
- include: brace-group-end
- include: main
- match: ((\\)textit)(\{)
captures:
Expand All @@ -570,7 +570,7 @@ contexts:
push:
- meta_scope: meta.function.textit.latex
- meta_content_scope: markup.italic.textit.latex
- include: brace-pop
- include: brace-group-end
- include: main
- match: ((\\)textbf)(\{)
captures:
Expand All @@ -580,7 +580,7 @@ contexts:
push:
- meta_scope: meta.function.textbf.latex
- meta_content_scope: markup.bold.textbf.latex
- include: brace-pop
- include: brace-group-end
- include: main
- match: ((\\)texttt)(\{)
captures:
Expand All @@ -590,7 +590,7 @@ contexts:
push:
- meta_scope: meta.function.texttt.latex
- meta_content_scope: markup.raw.texttt.latex
- include: brace-pop
- include: brace-group-end
- include: main
- match: ((\\)textsl)(\{)
captures:
Expand All @@ -600,15 +600,15 @@ contexts:
push:
- meta_scope: meta.function.textsl.latex
- meta_content_scope: markup.italic.textsl.latex
- include: brace-pop
- include: brace-group-end
- include: main
- match: ((\\)text)(\{)
captures:
1: support.function.text.latex
2: punctuation.definition.backslash.latex
3: punctuation.definition.group.brace.begin.latex
push:
- include: brace-pop
- include: brace-group-end
- include: main
- match: ((\\)underline)(\{)
captures:
Expand All @@ -618,7 +618,7 @@ contexts:
push:
- meta_scope: meta.function.underline.latex
- meta_content_scope: markup.underline.underline.latex
- include: brace-pop
- include: brace-group-end
- include: main

footnote:
Expand All @@ -634,7 +634,7 @@ contexts:
set:
- meta_scope: meta.function.footnote.latex meta.group.brace.latex
- meta_content_scope: markup.italic.footnote.latex
- include: brace-pop
- include: brace-group-end
- include: main
- match: (?=\S)
pop: true
Expand Down Expand Up @@ -686,7 +686,7 @@ contexts:
- meta_scope: meta.group.brace.latex
- match: '[a-zA-Z0-9\.:/*!^_-]+'
scope: constant.other.citation.latex
- include: brace-pop
- include: brace-group-end
- match: ''
pop: true
- match: |-
Expand All @@ -708,7 +708,7 @@ contexts:
- meta_scope: meta.function.reference.latex meta.group.brace.latex
- match: '[a-zA-Z0-9\.:/*!^_-]+'
scope: constant.other.reference.latex
- include: brace-pop
- include: brace-group-end
- match: ''
pop: true
- match: ((\\)label)(\{)
Expand All @@ -720,7 +720,7 @@ contexts:
- meta_scope: meta.function.label.latex
- match: '[a-zA-Z0-9\.:/*!^_-]+'
scope: entity.name.label.latex
- include: brace-pop
- include: brace-group-end

begin-end-commands:
- match: ((\\)begin)(\{)\s*(\w*)\*?\s*(\})
Expand Down Expand Up @@ -1547,7 +1547,7 @@ contexts:
push:
- meta_include_prototype: false
- meta_scope: meta.function.newcolumntype.latex
- include: brace-pop
- include: brace-group-end
- include: array-preamble
Expand Down Expand Up @@ -1591,7 +1591,7 @@ contexts:
- match: \{
scope: punctuation.definition.group.brace.begin.latex
push:
- include: brace-pop
- include: brace-group-end
- include: general-constants
- include: general-commands
- include: array-preamble
Expand All @@ -1611,7 +1611,7 @@ contexts:
2: punctuation.definition.group.brace.begin.latex
push:
- meta_scope: meta.function.before-column-decl.latex
- include: brace-pop
- include: brace-group-end
- include: general-constants
- include: general-commands
- include: macro-braces
Expand All @@ -1622,7 +1622,7 @@ contexts:
2: punctuation.definition.group.brace.begin.latex
push:
- meta_scope: meta.function.after-column-decl.latex
- include: brace-pop
- include: brace-group-end
- include: general-constants
- include: general-commands
- include: macro-braces
Expand All @@ -1636,7 +1636,7 @@ contexts:
2: punctuation.definition.group.brace.begin.latex
push:
- meta_scope: meta.function.inter-column-decl.latex
- include: brace-pop
- include: brace-group-end
- include: general-constants
- include: general-commands
- include: macro-braces
Expand All @@ -1647,7 +1647,7 @@ contexts:
2: punctuation.definition.group.brace.begin.latex
push:
- meta_scope: meta.function.inter-column-decl.latex
- include: brace-pop
- include: brace-group-end
- include: general-constants
- include: general-commands
- include: macro-braces
Expand Down
14 changes: 7 additions & 7 deletions LaTeX/TeX.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ contexts:
scope: punctuation.definition.group.brace.begin.tex
push:
- meta_scope: meta.group.brace.tex
- include: brace-pop
- include: brace-group-end
- include: main

# within macros, it is possible that only part of some nested struture
Expand All @@ -167,7 +167,7 @@ contexts:
scope: punctuation.definition.group.brace.begin.tex
push:
- meta_scope: meta.group.brace.tex
- include: brace-pop
- include: brace-group-end
- include: general-constants
- include: general-commands
- include: macro-braces
Expand All @@ -180,7 +180,7 @@ contexts:
3: punctuation.definition.group.brace.begin.tex
push:
- meta_scope: meta.function.box.tex
- include: brace-pop
- include: brace-group-end
- include: main

macros:
Expand Down Expand Up @@ -238,7 +238,7 @@ contexts:

def-definition-body:
- meta_scope: meta.function.body.tex meta.group.brace.tex
- include: brace-pop
- include: brace-group-end
- include: general-constants
- include: general-commands
- include: macro-braces
Expand Down Expand Up @@ -324,7 +324,7 @@ contexts:
scope: punctuation.definition.group.brace.begin.tex
push:
- meta_scope: meta.group.brace.tex
- include: brace-pop
- include: brace-group-end
- include: math-content

math-brackets:
Expand Down Expand Up @@ -383,8 +383,8 @@ contexts:
- match: (?=\S)
pop: true

# matches a closing brace pops the context
brace-pop:
# matches a closing brace and pops the context
brace-group-end:
- match: \}
scope: punctuation.definition.group.brace.end.tex
pop: true
Expand Down

0 comments on commit d789979

Please sign in to comment.