1"
2" Copyright 2017, Data61
3" Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4" ABN 41 687 119 230.
5"
6" This software may be distributed and modified according to the terms of
7" the BSD 2-Clause license. Note that NO WARRANTY is provided.
8" See "LICENSE_BSD2.txt" for details.
9"
10" @TAG(DATA61_BSD)
11"
12
13" Vim syntax for .bf/.pbf files. Where relevant, comments below refer to the
14" bitfield generator's source.
15
16syn match   BFComment "\(#\( .*\)\?\|--.*\)$"
17syn match   BFCPP     "[ \t]*#[^ ].*$"
18
19" reserved_map.keys()
20syn keyword BFKeyword base block field field_high mask padding tag tagged_union
21
22" Tweaked t_INTLIT
23syn match   BFLiteral "[ \t]\([1-9][0-9]*\|0[oO]\?[0-7]\+\|0[xX][0-9a-fA-F]\+\|0[bB][01]\+\|0\)[lL]\?"
24
25hi def link BFComment Comment
26hi def link BFCPP     PreProc
27hi def link BFKeyword Type
28hi def link BFLiteral Constant
29