Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bbf4a10

Browse files
chuwychrisbra
authored andcommitted
runtime(unison): update syntax from upstream repository
closes: #18623 Signed-off-by: Anton Parkhomenko <mailbox@chuwy.me> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 7bb56b4 commit bbf4a10

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎runtime/syntax/unison.vim‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"
33
" Language: unison
44
" Maintainer: Anton Parkhomenko <anton@chuwy.me>
5-
" Last Change: Aug 7, 2023
5+
" Last Change: Oct 25, 2025
66
" Original Author: John Williams, Paul Chiusano and Rúnar Bjarnason
77

88
if exists("b:current_syntax")
@@ -23,7 +23,7 @@ syn match unisonSpecialCharError contained "\\&\|'''\+"
2323
syn region unisonString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=unisonSpecialChar
2424
syn match unisonCharacter "[^a-zA-Z0-9_']'\([^\\]\|\\[^']\+\|\\'\)'"lc=1 contains=unisonSpecialChar,unisonSpecialCharError
2525
syn match unisonCharacter "^'\([^\\]\|\\[^']\+\|\\'\)'" contains=unisonSpecialChar,unisonSpecialCharError
26-
syn match unisonNumber "\<[0-9]\+\>\|\<0[xX][0-9a-fA-F]\+\>\|\<0[oO][0-7]\+\>"
26+
syn match unisonNumber "\<[0-9]\+\>\|\<0[xX][0-9a-fA-F]\+\>\|\<0[oO][0-7]\+\>\|\<0[bB][01]\+\>"
2727
syn match unisonFloat "\<[0-9]\+\.[0-9]\+\([eE][-+]\=[0-9]\+\)\=\>"
2828

2929
" Keyword definitions. These must be patterns instead of keywords
@@ -38,7 +38,8 @@ syn match unisonConditional "\<\(if\|else\|then\)\>"
3838
syn match unisonBoolean "\<\(true\|false\)\>"
3939

4040
syn match unisonType "\<\C[A-Z][0-9A-Za-z_'!]*\>"
41-
syn match unisonName "\<\C[a-z_][0-9A-Za-z_'!]*\>"
41+
syn match unisonName "\<\C[a-z_][0-9A-Za-z_'!]*\>" contains=ALL
42+
syn match unisonDef "^\C[A-Za-z_][0-9A-Za-z_'!]*:"
4243

4344
" Comments
4445
syn match unisonLineComment "---*\([^-!#$%&\*\+./<=>\?@\\^|~].*\)\?$"
@@ -57,7 +58,7 @@ syn region unisonDocDirective contained matchgroup=unisonDocDirective start
5758

5859
syn match unisonDebug "\<\(todo\|bug\|Debug.trace\|Debug.evalToText\)\>"
5960

60-
" things like
61+
" things like
6162
" > my_func 1 3
6263
" test> Function.tap.tests.t1 = check let
6364
" use Nat == +
@@ -88,6 +89,7 @@ hi def link unisonImport Include
8889
hi def link unisonLineComment Comment
8990
hi def link unisonLink Type
9091
hi def link unisonName Identifier
92+
hi def link unisonDef Typedef
9193
hi def link unisonNumber Number
9294
hi def link unisonOperator Operator
9395
hi def link unisonSpecialChar SpecialChar

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /