File: wadc.vim

package info (click to toggle)
wadc 3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 7,352 kB
  • sloc: java: 3,808; ansic: 1,950; xml: 135; makefile: 67; sh: 34
file content (30 lines) | stat: -rw-r--r-- 1,009 bytes parent folder | download | duplicates (4)
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
" Vim syntax file
" Language:     WadC
" Author:       Jonatan Dowland <jon@dow.land>
" URL:          https://jmtd.net/wadc/
" Licence:      GPL-2 (http://www.gnu.org)
" Remarks:      Vim 6 or greater

" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
  finish
endif

syn clear

syn keyword     wadcTodo            contained TODO FIXME XXX BUG
syn cluster     wadcCommentGroup    contains=wadcTodo
syn region      wadcComment         start="/\*" end="\*/" contains=@wadcCommentGroup
syn region      wadcComment         start="--" end="$" contains=@wadcCommentGroup
hi def link     wadcComment         Comment
hi def link     wadcTodo            Todo

syn region      wadcInclude         start="^#\"" end="$"
hi def link     wadcInclude         Include

syn region      wadcString          start="\"" end="\""
hi def link     wadcString          String

" not working yet
syn match       wadcNumber          display contained "\d\+"
hi def link     wadcNumber          Number