Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " Vim syntax file |
| 2 | " Language: sinda85, sinda/fluint output file |
| 3 | " Maintainer: Adrian Nagle, anagle@ball.com |
| 4 | " Last Change: 2003 May 11 |
| 5 | " Filenames: *.out |
| 6 | " URL: http://www.naglenet.org/vim/syntax/sindaout.vim |
| 7 | " MAIN URL: http://www.naglenet.org/vim/ |
| 8 | |
| 9 | |
| 10 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 11 | " quit when a syntax file was already loaded |
| 12 | if exists("b:current_syntax") |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13 | finish |
| 14 | endif |
| 15 | |
| 16 | |
| 17 | |
| 18 | " Ignore case |
| 19 | syn case match |
| 20 | |
| 21 | |
| 22 | |
| 23 | " Load SINDA syntax file |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 24 | runtime! syntax/sinda.vim |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 25 | unlet b:current_syntax |
| 26 | |
| 27 | |
| 28 | |
| 29 | " |
| 30 | " |
| 31 | " Begin syntax definitions for sinda output files. |
| 32 | " |
| 33 | |
| 34 | " Define keywords for sinda output |
| 35 | syn case match |
| 36 | |
| 37 | syn keyword sindaoutPos ON SI |
| 38 | syn keyword sindaoutNeg OFF ENG |
| 39 | |
| 40 | |
| 41 | |
| 42 | " Define matches for sinda output |
| 43 | syn match sindaoutFile ": \w*\.TAK"hs=s+2 |
| 44 | |
| 45 | syn match sindaoutInteger "T\=[0-9]*\>"ms=s+1 |
| 46 | |
| 47 | syn match sindaoutSectionDelim "[-<>]\{4,}" contains=sindaoutSectionTitle |
| 48 | syn match sindaoutSectionDelim ":\=\.\{4,}:\=" contains=sindaoutSectionTitle |
| 49 | syn match sindaoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1 |
| 50 | |
| 51 | syn match sindaoutHeaderDelim "=\{5,}" |
| 52 | syn match sindaoutHeaderDelim "|\{5,}" |
| 53 | syn match sindaoutHeaderDelim "+\{5,}" |
| 54 | |
| 55 | syn match sindaoutLabel "Input File:" contains=sindaoutFile |
| 56 | syn match sindaoutLabel "Begin Solution: Routine" |
| 57 | |
| 58 | syn match sindaoutError "<<< Error >>>" |
| 59 | |
| 60 | |
| 61 | " Define the default highlighting |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 62 | " Only when an item doesn't have highlighting yet |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 63 | |
Bram Moolenaar | 89bcfda | 2016-08-30 23:26:57 +0200 | [diff] [blame] | 64 | hi sindaHeaderDelim ctermfg=Black ctermbg=Green guifg=Black guibg=Green |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 65 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 66 | hi def link sindaoutPos Statement |
| 67 | hi def link sindaoutNeg PreProc |
| 68 | hi def link sindaoutTitle Type |
| 69 | hi def link sindaoutFile sindaIncludeFile |
| 70 | hi def link sindaoutInteger sindaInteger |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 71 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 72 | hi def link sindaoutSectionDelim Delimiter |
| 73 | hi def link sindaoutSectionTitle Exception |
| 74 | hi def link sindaoutHeaderDelim SpecialComment |
| 75 | hi def link sindaoutLabel Identifier |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 76 | |
Bram Moolenaar | f37506f | 2016-08-31 22:22:10 +0200 | [diff] [blame] | 77 | hi def link sindaoutError Error |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 78 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 79 | |
| 80 | |
| 81 | let b:current_syntax = "sindaout" |
| 82 | |
| 83 | " vim: ts=8 sw=2 |