From: fennecdjay Date: Thu, 3 Nov 2022 12:55:13 +0000 (+0100) Subject: :art: Update editor stuff to include primitive X-Git-Tag: nightly~207^2~92 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d6bb2450cf0bf6f7b097f8ee102cb472c04ade88;p=gwion.git :art: Update editor stuff to include primitive --- diff --git a/highlighters/gwion.kak b/highlighters/gwion.kak index d2d5ff56..a2c0237d 100644 --- a/highlighters/gwion.kak +++ b/highlighters/gwion.kak @@ -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 "$*"; } diff --git a/highlighters/gwion.nanorc b/highlighters/gwion.nanorc index 52729fa1..77f7969c 100644 --- a/highlighters/gwion.nanorc +++ b/highlighters/gwion.nanorc @@ -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"