]> Nishi Git Mirror - gwion.git/commitdiff
:art: Update editor stuff to include primitive
authorfennecdjay <fennecdjay@gmail.com>
Thu, 3 Nov 2022 12:55:13 +0000 (13:55 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Thu, 3 Nov 2022 12:55:13 +0000 (13:55 +0100)
highlighters/gwion.kak
highlighters/gwion.nanorc

index d2d5ff56e3f8ee833e17e798ad78c25d7f17bd1f..a2c0237d5a4145470fb807b0743af3a2f1e2bdfc 100644 (file)
@@ -28,7 +28,7 @@ provide-module -override gwion %{
                types='auto int float bool dur time void Object Shred Event'
                values='true false none this now me adc dac maybe'
                builtins='__file__ __line__ __func__'
-               entities='class struct trait union enum'
+               entities='class struct trait union enum primitive'
                operators='\\\? : \$ @ \\\+ - \\\* / % \~ \< \> \\\^ \\\| \& ! ='
 
                join() { sep=$2; eval set -- $1; IFS="$sep"; echo "$*"; }
index 52729fa17008f02bc813f44ee287a515da5b6795..77f7969cce61bac7e172ea4ce490a4e508546deb 100644 (file)
@@ -42,7 +42,7 @@ color lightred "\<(second|ms|day|samp|minute|hour)\>"
 color brightcyan "\<(maybe)\>"
 color cyan "\<(adc|blackhole)\>"
 
-color brightgreen "\<(try|handle|perform|retry|class|struct|trait|union|enum|fun|locale|operator|funptr|typedef|distinct|new)\>"
+color brightgreen "\<(try|handle|perform|retry|class|struct|trait|union|enum|primitive|fun|locale|operator|funptr|typedef|distinct|new)\>"
 color italic,red start="#\<(pragma|include|define|ifdef|ifndef|undef|endif|import|locale)\>" end="$"
 color italic,red "#locale"
 color italic,yellow "extends"