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++ 

manuals this , this. manual scope names here.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -