annotate runtime/syntax/tilde.vim @ 32728:b13f723a7ec6 v9.0.1684

patch 9.0.1684: Update libvterm to rev 839 Commit: https://github.com/vim/vim/commit/b00df7aa388994119346a21d77b0d0db2a0a5e9f Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Aug 8 11:03:00 2023 +0800 patch 9.0.1684: Update libvterm to rev 839 Problem: libvterm slightly outdated Solution: Update libvterm from rev 818 to rev 839 Notable fix: libvterm now handles DECSM/DECRM with multiple arguents, so several ncurses programs (e.g. nnn) can enable mouse properly when run in Vim's terminal in XTerm. closes: #12746 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author Christian Brabandt <cb@256bit.org>
date Fri, 11 Aug 2023 21:30:03 +0200
parents 5b7ea82bc18f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " This file works only for Vim6.x
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Language: Tilde
22723
5b7ea82bc18f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 2034
diff changeset
4 " Maintainer: Tobias Rundström <tobi@tildesoftware.net>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " URL: http://www.tildesoftware.net
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
6 " CVS: $Id: tilde.vim,v 1.1 2004/06/13 19:31:51 vimboss Exp $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 "tilde dosent care ...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn match tildeFunction "\~[a-z_0-9]\+"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn region tildeParen start="(" end=")" contains=tildeString,tildeNumber,tildeVariable,tildeField,tildeSymtab,tildeFunction,tildeParen,tildeHexNumber,tildeOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn region tildeString contained start=+"+ skip=+\\\\\|\\"+ end=+"+ keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn region tildeString contained start=+'+ skip=+\\\\\|\\"+ end=+'+ keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match tildeNumber "\d" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match tildeOperator "or\|and" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match tildeHexNumber "0x[a-z0-9]\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match tildeVariable "$[a-z_0-9]\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match tildeField "%[a-z_0-9]\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match tildeSymtab "@[a-z_0-9]\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match tildeComment "^#.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn region tildeCurly start=+{+ end=+}+ contained contains=tildeLG,tildeString,tildeNumber,tildeVariable,tildeField,tildeFunction,tildeSymtab,tildeHexNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match tildeLG "=>" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 hi def link tildeComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 hi def link tildeFunction Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 hi def link tildeOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 hi def link tildeString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 hi def link tildeNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 hi def link tildeHexNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 hi def link tildeVariable Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 hi def link tildeField Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 hi def link tildeSymtab Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 hi def link tildeError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 let b:current_syntax = "tilde"