Partly fix latex highlights and add markup scope docs

imgbot
Blaž Hrastnik 3 years ago
parent 9bfb701c94
commit 40969ad452

@ -162,6 +162,20 @@ We use a similar set of scopes as
- `namespace` - `namespace`
- `markup`
- `heading`
- `list`
- `unnumbered`
- `numbered`
- `bold`
- `italic`
- `underline`
- `link`
- `quote`
- `raw`
- `inline`
- `block`
#### Interface #### Interface
These scopes are used for theming the editor interface. These scopes are used for theming the editor interface.

@ -318,60 +318,60 @@
["[" "]" "{" "}"] @punctuation.bracket ;"(" ")" is has no special meaning in LaTeX ["[" "]" "{" "}"] @punctuation.bracket ;"(" ")" is has no special meaning in LaTeX
(chapter (chapter
text: (brace_group) @text.title) text: (brace_group) @markup.heading)
(part (part
text: (brace_group) @text.title) text: (brace_group) @markup.heading)
(section (section
text: (brace_group) @text.title) text: (brace_group) @markup.heading)
(subsection (subsection
text: (brace_group) @text.title) text: (brace_group) @markup.heading)
(subsubsection (subsubsection
text: (brace_group) @text.title) text: (brace_group) @markup.heading)
(paragraph (paragraph
text: (brace_group) @text.title) text: (brace_group) @markup.heading)
(subparagraph (subparagraph
text: (brace_group) @text.title) text: (brace_group) @markup.heading)
((environment ((environment
(begin (begin
name: (word) @_frame) name: (word) @_frame)
(brace_group (brace_group
child: (text) @text.title)) child: (text) @markup.heading))
(#eq? @_frame "frame")) (#eq? @_frame "frame"))
((generic_command ((generic_command
name:(generic_command_name) @_name name:(generic_command_name) @_name
arg: (brace_group arg: (brace_group
(text) @text.title)) (text) @markup.heading))
(#eq? @_name "\\frametitle")) (#eq? @_name "\\frametitle"))
;; Formatting ;; Formatting
((generic_command ((generic_command
name:(generic_command_name) @_name name:(generic_command_name) @_name
arg: (_) @text.emphasis) arg: (_) @markup.italic)
(#eq? @_name "\\emph")) (#eq? @_name "\\emph"))
((generic_command ((generic_command
name:(generic_command_name) @_name name:(generic_command_name) @_name
arg: (_) @text.emphasis) arg: (_) @markup.italic)
(#match? @_name "^(\\\\textit|\\\\mathit)$")) (#match? @_name "^(\\\\textit|\\\\mathit)$"))
((generic_command ((generic_command
name:(generic_command_name) @_name name:(generic_command_name) @_name
arg: (_) @text.strong) arg: (_) @markup.bold)
(#match? @_name "^(\\\\textbf|\\\\mathbf)$")) (#match? @_name "^(\\\\textbf|\\\\mathbf)$"))
((generic_command ((generic_command
name:(generic_command_name) @_name name:(generic_command_name) @_name
. .
arg: (_) @text.uri) arg: (_) @markup.underline.link)
(#match? @_name "^(\\\\url|\\\\href)$")) (#match? @_name "^(\\\\url|\\\\href)$"))
(ERROR) @error (ERROR) @error

Loading…
Cancel
Save