mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 04:21:42 +00:00
Merge pull request #1838 from overleaf/ns-ref-highlighting
highlight arguments of known ref commands GitOrigin-RevId: 6c95ff5a973c28788c569fe71da024692df2d69e
This commit is contained in:
parent
9226237a36
commit
113670f864
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ var LatexHighlightRules = function() {
|
|||
token : ["keyword", "lparen", "variable.parameter", "rparen", "lparen", "storage.type", "rparen"],
|
||||
regex : "(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})"
|
||||
}, {
|
||||
token : ["keyword","lparen", "variable.parameter", "rparen"],
|
||||
regex : "(\\\\(?:label|v?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"
|
||||
token : ["keyword", "lparen", "variable.parameter", "rparen"],
|
||||
regex : "(\\\\(?:label|(?:eq|page|c|C)?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"
|
||||
}, {
|
||||
token : ["storage.type", "lparen", "variable.parameter", "rparen"],
|
||||
regex : "(\\\\begin)({)(verbatim)(})",
|
||||
|
|
Loading…
Reference in a new issue