Skip to content

Commit

Permalink
add prototypical highlight for expl3 syntax
Browse files Browse the repository at this point in the history
fix #48, but still problematic
because other highlights such as % sign are overridden and invalid
  • Loading branch information
yudai-nkt committed Jul 16, 2016
1 parent 91bfc8e commit bc4417b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions grammars/latex.cson
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@
}
]
}
{
'begin': '(\\\\ExplSyntaxOn|\\\\ProvidesExplPackage)'
'beginCaptures':
'0':
'name': 'support.function.ExplSyntax.tex'
'patterns':[
{
'match': '(\\\\)[A-Za-z@_]+(:[nNpTFDwcVvxof]+)?'
'name': 'support.function.expl3.tex'
}
]
'end': '\\\\ExplSyntaxOff'
'endCaptures':
'0':
'name': 'support.function.ExplSyntax.tex'
}
{
'begin': '(((\\\\)begin)(\\{)(minted)(\\})(?:(\\[).*(\\]))?\{.*\}(\\s*%.*\\n?)?)'
'captures':
Expand Down

0 comments on commit bc4417b

Please sign in to comment.