mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-05 22:05:04 +00:00
Updated syntax highlight to pickup the getters/setters and the previous word
This commit is contained in:
parent
8ca9e6d4de
commit
4af3405da3
1 changed files with 28 additions and 36 deletions
|
@ -10,6 +10,34 @@ scope: source.usm
|
|||
|
||||
contexts:
|
||||
main:
|
||||
|
||||
# get/set
|
||||
- match: '\.(\S+)\sDEO2'
|
||||
scope: constant.numeric
|
||||
pop: true
|
||||
- match: '\.(\S+)\sDEO'
|
||||
scope: constant.numeric
|
||||
pop: true
|
||||
- match: '\.(\S+)\sPOK2'
|
||||
scope: constant.numeric
|
||||
pop: true
|
||||
- match: '\.(\S+)\sPOK'
|
||||
scope: constant.numeric
|
||||
pop: true
|
||||
|
||||
- match: '\.(\S+)\sDEI2'
|
||||
scope: entity.name.type.typedef
|
||||
pop: true
|
||||
- match: '\.(\S+)\sDEI'
|
||||
scope: entity.name.type.typedef
|
||||
pop: true
|
||||
- match: '\.(\S+)\sPEK2'
|
||||
scope: entity.name.type.typedef
|
||||
pop: true
|
||||
- match: '\.(\S+)\sPEK'
|
||||
scope: entity.name.type.typedef
|
||||
pop: true
|
||||
|
||||
# label
|
||||
- match: '\@(\S+)\s?'
|
||||
scope: string.control
|
||||
|
@ -68,39 +96,3 @@ contexts:
|
|||
- meta_scope: comment.line
|
||||
- match: '\)'
|
||||
pop: true
|
||||
|
||||
# templated
|
||||
|
||||
- match: '(\S+)\^\!\s?'
|
||||
scope: entity.name.type.typedef
|
||||
pop: true
|
||||
- match: '(\S+)\~\!\s?'
|
||||
scope: constant.numeric
|
||||
pop: true
|
||||
- match: '(\S+)\*\!\s?'
|
||||
scope: entity.name.type.typedef
|
||||
pop: true
|
||||
- match: '(\S+)\=\!\s?'
|
||||
scope: constant.numeric
|
||||
pop: true
|
||||
|
||||
- match: '(\S+)\^\s?'
|
||||
scope: entity.name.type.typedef
|
||||
pop: true
|
||||
- match: '(\S+)\~\s?'
|
||||
scope: constant.numeric
|
||||
pop: true
|
||||
- match: '(\S+)\*\s?'
|
||||
scope: entity.name.type.typedef
|
||||
pop: true
|
||||
- match: '(\S+)\=\s?'
|
||||
scope: constant.numeric
|
||||
pop: true
|
||||
|
||||
|
||||
- match: '(\S+)\?\s?'
|
||||
scope: storage.type
|
||||
pop: true
|
||||
- match: '(\S+)\!\s?'
|
||||
scope: constant.numeric
|
||||
pop: true
|
Loading…
Reference in a new issue