


Will be derived from the file name if not used. This defines the name shown for the syntax in the menu. The allowed keys in the header area are: name Note that due to the YAML syntax, tab characters are not allowed To ensure that words such as elsewhere are not considered keywords. The above example, \b is used to ensure only word boundaries are matched, The match key is a regex, supporting features from the Oniguruma regex

It will be used at the start of the file. The context name main special: every syntax must define a main context, as This syntax file contains one context, main, that matches the words These scopes are used by color schemes to highlight the %YAML 1.2 - name : C file_extensions : scope : source.c contexts : main : - match : \b(if|else|for|while)\b scope : Īt its core, a syntax definition assigns scopes (e.g., ) toĪreas of the text.
