diff options
author | Dan Reif <dan.reif@collectivehealth.com> | 2018-04-30 12:00:42 -0700 |
---|---|---|
committer | Dan Reif <dan.reif@collectivehealth.com> | 2018-04-30 12:00:42 -0700 |
commit | 3e0c887365bc1ebd55b91dd69ab73f2dee1f00ed (patch) | |
tree | ce76003a08274cb805df101a44be8d37af1a4c4b /syntax/carp.vim | |
parent | b4d7993e7ea554153025c5072749f415e69e0323 (diff) | |
download | vim-polyglot-3e0c887365bc1ebd55b91dd69ab73f2dee1f00ed.tar.gz vim-polyglot-3e0c887365bc1ebd55b91dd69ab73f2dee1f00ed.zip |
Update (periodic rebuild)
I originally meant to run this before adding haproxy, but accidentally
pushed that into my branch. If you'd like to see that content, it's at
https://github.com/CH-DanReif/vim-polyglot/commit/414ad25c3ad1ab9c4b6a99fe4f08d6c30b7e0f57.
Diffstat (limited to '')
-rw-r--r-- | syntax/carp.vim | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/syntax/carp.vim b/syntax/carp.vim index 176c4d55..9896f734 100644 --- a/syntax/carp.vim +++ b/syntax/carp.vim @@ -23,33 +23,34 @@ syn keyword carpSyntax defmacro defdynamic quote cons list array syn keyword carpSyntax expand deftype register system-include register-type syn keyword carpSyntax defmodule copy use module defalias definterface eval syn keyword carpSyntax expand instantiate type info help quit env build run -syn keyword carpSyntax cat use project-set! local-include system-include +syn keyword carpSyntax cat project-set! local-include syn keyword carpSyntax add-cflag add-lib project load reload let-do ignore syn keyword carpSyntax fmt mac-only linux-only windows-only use-all when syn keyword carpSyntax unless defn-do comment forever-do case and* or* -syn keyword carpSyntax str* println* +syn keyword carpSyntax str* println* break doc sig hidden private syn match carpSyntax "\vc(a|d){1,4}r" syn keyword carpFunc Int Float Double Bool String Char Array Fn Ref Long λ +syn keyword carpFunc Pattern syn keyword carpFunc not or and + - * / = /= >= <= > < inc dec -syn keyword carpFunc println print get-line from-string mod seed random +syn keyword carpFunc println print get-line from-string mod random syn keyword carpFunc random-between str mask delete append count duplicate syn keyword carpFunc cstr chars from-chars to-int from-int sin cos sqrt acos -syn keyword carpFunc atan2 exit time srand for cond floor abs sort-with +syn keyword carpFunc atan2 exit time seed-random for cond floor abs sort-with syn keyword carpFunc subarray prefix-array suffix-array reverse sum min max syn keyword carpFunc first last reduce format zero read-file bit-shift-left syn keyword carpFunc bit-shift-right bit-and bit-or bit-xor bit-not safe-add syn keyword carpFunc safe-sub safe-mul even? odd? cmp allocate repeat-indexed syn keyword carpFunc sanitize-addresses memory-balance reset-memory-balance! syn keyword carpFunc log-memory-balance! memory-logged assert-balanced trace -syn keyword carpFunc pi e swaop! update! char-at tail head split-by words lines +syn keyword carpFunc pi e swap! update! char-at tail head split-by words lines syn keyword carpFunc pad-left pad-right count-char empty? random-sized substring syn keyword carpFunc prefix-string suffix-string starts-with? ends-with? -syn keyword carpFunc string-join free sleep-seconds sleep-micros -syn keyword carpFunc atan2 exit time srand for cond floor abs neg to-float +syn keyword carpFunc string-join free sleep-seconds sleep-micros substitute +syn keyword carpFunc neg to-float match matches? find global-match match-str syn keyword carpFunc from-float tan asin atan cosh sinh tanh exp frexp ldexp syn keyword carpFunc log log10 modf pow ceil clamp approx refstr foreach -syn keyword carpFunc => ==> repeat nth replicate range raw aset aset! count +syn keyword carpFunc => ==> repeat nth replicate range raw aset aset! syn keyword carpFunc push-back pop-back sort index-of element-count @@ -75,8 +76,9 @@ syn region carpStruc matchgroup=Delimiter start="("rs=s+1 matchgroup=Delimiter e syn region carpStruc matchgroup=Delimiter start="\["rs=s+1 matchgroup=Delimiter end="\]"re=e-1 contains=@carpNormal syn region carpString start=/\%(\\\)\@<!"/ skip=/\\[\\"]/ end=/"/ +syn region carpPattern start=/\%(\\\)\@<!\#"/ skip=/\\[\\"]/ end=/"/ -syn cluster carpNormal add=carpError,carpStruc,carpString +syn cluster carpNormal add=carpError,carpStruc,carpString,carpPattern syn cluster carpQuotedOrNormal add=carpString syn match carpNumber "\<[-+]\?\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?[lf]\?\>" contains=carpContainedNumberError @@ -116,6 +118,7 @@ if version >= 508 || !exists("carp_syntax_init") HiLink carpCopy Function HiLink carpString String + HiLink carpPattern String HiLink carpChar Character HiLink carpBoolean Boolean |