/usr/share/vim/vim80/syntax/grads.vim is in vim-runtime 2:8.0.1453-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | " Vim syntax file
" Language: grads (GrADS scripts)
" Maintainer: Stefan Fronzek (sfronzek at gmx dot net)
" Last change: 13 Feb 2004
" Grid Analysis and Display System (GrADS); http://grads.iges.org/grads
" This syntax file defines highlighting for only very few features of
" the GrADS scripting language.
" quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
" GrADS is entirely case-insensitive.
syn case ignore
" The keywords
syn keyword gradsStatement if else endif break exit return
syn keyword gradsStatement while endwhile say prompt pull function
syn keyword gradsStatement subwrd sublin substr read write close
" String
syn region gradsString start=+'+ end=+'+
" Integer number
syn match gradsNumber "[+-]\=\<[0-9]\+\>"
" Operator
"syn keyword gradsOperator | ! % & != >=
"syn match gradsOperator "[^\.]not[^a-zA-Z]"
" Variables
syn keyword gradsFixVariables lat lon lev result rec rc
syn match gradsglobalVariables "_[a-zA-Z][a-zA-Z0-9]*"
syn match gradsVariables "[a-zA-Z][a-zA-Z0-9]*"
syn match gradsConst "#[A-Z][A-Z_]+"
" Comments
syn match gradsComment "\*.*"
" Typical Typos
" for C programmers:
" syn match gradsTypos "=="
" syn match gradsTypos "!="
" Define the default highlighting.
" Only when an item doesn't hgs highlighting+yet
hi def link gradsStatement Statement
hi def link gradsString String
hi def link gradsNumber Number
hi def link gradsFixVariables Special
hi def link gradsVariables Identifier
hi def link gradsglobalVariables Special
hi def link gradsConst Special
hi def link gradsClassMethods Function
hi def link gradsOperator Operator
hi def link gradsComment Comment
hi def link gradsTypos Error
let b:current_syntax = "grads"
|