uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 4af3405da3067526c78d91a91a69e3c95f8287df
parent 8ca9e6d4de349c5dc1e4aeb053bb085d56c41781
Author: neauoire <aliceffekt@gmail.com>
Date:   Thu, 22 Apr 2021 20:47:23 -0700

Updated syntax highlight to pickup the getters/setters and the previous word

Diffstat:
Metc/usm.sublime-syntax | 65++++++++++++++++++++++++++++-------------------------------------
1 file changed, 28 insertions(+), 37 deletions(-)

diff --git a/etc/usm.sublime-syntax b/etc/usm.sublime-syntax @@ -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 -\ No newline at end of file