Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %YAML 1.2
- ---
- name: SourceCFG
- file_extensions: [cfg]
- scope: source.example-c
- version: 2
- contexts:
- main:
- # Comments begin with a '//' and finish at the end of the line
- - match: '//'
- scope: punctuation.definition.comment.example-c
- push: line_comment
- # Keywords
- - match: '\b(alias|echo|bind|exec|wait)\b'
- scope: keyword.control.example-c
- # Numbers
- - match: '\b(-)?[0-9.]+\b'
- scope: constant.numeric.example-c
- # Aliases
- - match: '((?<=alias )|(?<=alias "))[^ ;"]+'
- scope: variable.parameter.c++
- # Scripts
- - match: '(?<=exec )\w+'
- scope: entity.name.function.c++
- # Semicolon
- - match: ';'
- scope: variable.function.c++
- line_comment:
- - meta_scope: comment.line.example-c
- - match: $
- pop: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement