yaml - Creating a new syntax for Sublime text 3 -
i'm trying create syntax highlighting flex. i'm using packagedev , yaml.
so, want find blocks, starting %{
, ending %}
, need highlight inside block c++ code.
i thought 2 variants, both of them don't work:
# ... # first - begin: '%\{' end: '%\}' contentname: patterns: - include: source.c++ # that's doesn't work # second - match: '%\{((?:.|\n)*)%\}' # regexpr works correctly name: source.c++ captures: '1': - include: source.c++ # that's doesn't work
it works:
- name: markup.italic.lex begin: '%\{' end: '%\}' patterns: - include: source.c++
Comments
Post a Comment