Last active
August 29, 2015 14:03
-
-
Save RWJMurphy/ff01a7d575b6729ce34f to your computer and use it in GitHub Desktop.
DF Init & Raw file syntax highlighting for vim - WIP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if exists("b:current_syntax") | |
| finish | |
| endif | |
| " Comments | |
| syntax match initComment "^\(\s*\[.*$\)\@!.*$" | |
| " Tags that take either YES or NO | |
| syntax keyword initBoolTagName SOUND INTRO WINDOWED RESIZABLE BLACK_SPACE GRAPHICS GRAPHICS_BLACK_SPACE | |
| syntax keyword initBoolTagName SINGLE_BUFFER TOPMOST FPS ARB_SYNC VSYNC MOUSE MOUSE_PICTURE COMPRESSED_SAVES | |
| syntax keyword boolValue YES NO | |
| " Tags that take a numeric value | |
| syntax keyword initNumericTagName VOLUME WINDOWEDX WINDOWEDY FULLSCREENX FULLSCREENY | |
| syntax keyword initNumericTagName GRAPHICS_WINDOWEDX GRAPHICS_WINDOWEDY GRAPHICS_FULLSCREENX GRAPHICS_FULLSCREENY | |
| syntax keyword initNumericTagName TRUETYPE FPS_CAP G_FPS_CAP ZOOM_SPEED KEY_HOLD_MS KEY_REPEAT_MS | |
| syntax keyword initNumericTagName KEY_REPEAT_ACCEL_LIMIT KEY_REPEAT_ACCEL_START MACRO_MS RECENTER_INTERFACE_SHUTDOWN_MS | |
| " Tags with their own specific set of values | |
| " [PRINT_MODE:2D] | |
| " [TEXTURE_PARAM:LINEAR] | |
| " [PRIORITY:NORMAL] | |
| syntax keyword initPrintMode PRINT_MODE | |
| syntax keyword initTextureParam TEXTURE_PARAM | |
| syntax keyword initPriority PRIORITY | |
| " Tags that take a filename | |
| " [FONT:curses_640x300.png] | |
| " [FULLFONT:curses_800x600.png] | |
| " [GRAPHICS_FONT:curses_square_16x16.png] | |
| " [GRAPHICS_FULLFONT:curses_square_16x16.png] | |
| highlight link initComment Comment | |
| highlight link initBoolTagName Keyword | |
| highlight link boolValue Boolean | |
| highlight link initNumericTagName Keyword | |
| highlight link initPrintMode Keyword | |
| highlight link initTexttureParam Keyword | |
| highlight link initPriority Keyword | |
| let b:current_syntax = "dwarf_fortress" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment