Mercurial > vim
annotate runtime/syntax/tssgm.vim @ 26007:1d2e1c23e458 v8.2.3537
patch 8.2.3537: mode() does not return the right value in 'operatorfunc'
Commit: https://github.com/vim/vim/commit/75c30e96cf280a8cc01ac01c41a9252db3e503cc
Author: naohiro ono <obcat@icloud.com>
Date: Tue Oct 19 11:15:41 2021 +0100
patch 8.2.3537: mode() does not return the right value in 'operatorfunc'
Problem: mode() does not return the right value in 'operatorfunc'.
Solution: Reset finish_op while calling 'operatorfunc'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 19 Oct 2021 12:30:05 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: TSS (Thermal Synthesizer System) Geometry | |
3 " Maintainer: Adrian Nagle, anagle@ball.com | |
4 " Last Change: 2003 May 11 | |
5 " Filenames: *.tssgm | |
6 " URL: http://www.naglenet.org/vim/syntax/tssgm.vim | |
7 " MAIN URL: http://www.naglenet.org/vim/ | |
8 | |
9 | |
10 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
11 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
12 if exists("b:current_syntax") |
7 | 13 finish |
14 endif | |
15 | |
16 | |
17 | |
18 " Ignore case | |
19 syn case ignore | |
20 | |
21 | |
22 | |
23 " | |
24 " | |
25 " Begin syntax definitions for tss geomtery file. | |
26 " | |
27 | |
28 " Define keywords for TSS | |
29 syn keyword tssgmParam units mirror param active sides submodel include | |
30 syn keyword tssgmParam iconductor nbeta ngamma optics material thickness color | |
31 syn keyword tssgmParam initial_temp | |
32 syn keyword tssgmParam initial_id node_ids node_add node_type | |
33 syn keyword tssgmParam gamma_boundaries gamma_add beta_boundaries | |
34 syn keyword tssgmParam p1 p2 p3 p4 p5 p6 rot1 rot2 rot3 tx ty tz | |
35 | |
36 syn keyword tssgmSurfType rectangle trapezoid disc ellipse triangle | |
37 syn keyword tssgmSurfType polygon cylinder cone sphere ellipic-cone | |
38 syn keyword tssgmSurfType ogive torus box paraboloid hyperboloid ellipsoid | |
39 syn keyword tssgmSurfType quadrilateral trapeziod | |
40 | |
41 syn keyword tssgmArgs OUT IN DOWN BOTH DOUBLE NONE SINGLE RADK CC FECC | |
42 syn keyword tssgmArgs white red blue green yellow orange violet pink | |
43 syn keyword tssgmArgs turquoise grey black | |
44 syn keyword tssgmArgs Arithmetic Boundary Heater | |
45 | |
46 syn keyword tssgmDelim assembly | |
47 | |
48 syn keyword tssgmEnd end | |
49 | |
50 syn keyword tssgmUnits cm feet meters inches | |
51 syn keyword tssgmUnits Celsius Kelvin Fahrenheit Rankine | |
52 | |
53 | |
54 | |
55 " Define matches for TSS | |
56 syn match tssgmDefault "^DEFAULT/LENGTH = \(ft\|in\|cm\|m\)" | |
57 syn match tssgmDefault "^DEFAULT/TEMP = [CKFR]" | |
58 | |
59 syn match tssgmComment /comment \+= \+".*"/ contains=tssParam,tssgmCommentString | |
60 syn match tssgmCommentString /".*"/ contained | |
61 | |
62 syn match tssgmSurfIdent " \S\+\.\d\+ \=$" | |
63 | |
64 syn match tssgmString /"[^" ]\+"/ms=s+1,me=e-1 contains=ALLBUT,tssInteger | |
65 | |
66 syn match tssgmArgs / = [xyz],"/ms=s+3,me=e-2 | |
67 | |
68 syn match tssgmInteger "-\=\<[0-9]*\>" | |
69 syn match tssgmFloat "-\=\<[0-9]*\.[0-9]*" | |
70 syn match tssgmScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>" | |
71 | |
72 | |
73 | |
74 " Define the default highlighting | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
75 " Only when an item doesn't have highlighting yet |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
76 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
77 hi def link tssgmParam Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
78 hi def link tssgmSurfType Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
79 hi def link tssgmArgs Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
80 hi def link tssgmDelim Typedef |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
81 hi def link tssgmEnd Macro |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
82 hi def link tssgmUnits Special |
7 | 83 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
84 hi def link tssgmDefault SpecialComment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
85 hi def link tssgmComment Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
86 hi def link tssgmCommentString Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
87 hi def link tssgmSurfIdent Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
88 hi def link tssgmString Delimiter |
7 | 89 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
90 hi def link tssgmInteger Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
91 hi def link tssgmFloat Float |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
92 hi def link tssgmScientific Float |
7 | 93 |
94 | |
95 | |
96 let b:current_syntax = "tssgm" | |
97 | |
98 " vim: ts=8 sw=2 |