-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.vim
57 lines (40 loc) · 2.37 KB
/
card.vim
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
" Vim syntax file
" Language: cards of IPSL model (lmdz, inca, config, run)
" Maintainer: Ramiro Checa-Garcia
" Latest Revision: 03 September 2019
if exists("b:current_syntax")
finish
endif
syn keyword sections InitialStateFiles BoundaryFiles ParametersFiles Configuration PostProcessing
syn keyword sections OutputText Compatibility UserChoices RestartFiles OutputFiles
syn keyword sections Restarts ATM ListOfComponents SRF CHM OCE ICE MBG SBG CPL IOS Executable Post
syn keyword postproc Post_1D_inca_aero Post_1D_inca_species Post_1D_inca_emi
syn keyword variable iflag_phytrac LMDZ_Physics ConfType pmagic flag_aerosol
syn keyword variable ok_ade ok_aie aerosol_couple read_climoz ok_cdnc
syn keyword variable ByPass_hgardfou_teta ByPass_hgardfou_mats
syn keyword variable OutLevel
syn keyword variable LMDZ_COSP_OK LMDZ_COSP_monthly LMDZ_COSP_daily LMDZ_COSP_hf
syn keyword variable LMDZ_NMC_monthly LMDZ_NMC_daily LMDZ_NMC_hf
syn keyword variable libIGCM LMDZ_10m_winds seasalt_corr wind_parameter
syn keyword variable CoupOrchInca feedb calcul_flux flag_plane emi_interp_time
syn keyword variable JobName ExperimentName SpaceName LongName ModelName TagName ExpType
syn keyword variable CalendarType DateBegin DateEnd ORCA_version PeriodLength CompressionLevel
syn keyword variable OverRule RestartDate RestartJobName RestartPath WriteFrequency Restart
syn keyword variable ParserXIOS RebuildFrequency PackFrequency LightRestartPack
syn keyword variable TimeSeriesFrequency SeasonalFrequency MetricsPCMDI SeasonalFrequencyOffset
syn keyword variable PeriodDateBegin PeriodDateEnd CumulPeriod PeriodState SubmitPath
syn keyword variable simuid TimeSeriesRunning TimeSeriesCompleted LastExeSize
syn keyword cardvalues NONE 1Y 1M 1H 1D 5M 5H 5D FH FALSE
syn region listblock start="(" end=")"
syn match cardComment "#.*$" display contains=cardTodo,@Spell
syn match listelement "(*,*)" display contains=cardTodo,@Spell
highlight default link sections Function
highlight default link variable Keyword
highlight default link cardComment Comment
highlight default link listelement Number
highlight default link postproc Float
highlight default link cardvalues Boolean
highlight listblock gui=italic
autocmd InsertEnter * syn clear EOLWS | syn match EOLWS excludenl /\s\+\%#\@!$/
autocmd InsertLeave * syn clear EOLWS | syn match EOLWS excludenl /\s\+$/
highlight EOLWS ctermbg=red guibg=red