Last active
April 21, 2018 20:16
-
-
Save osvein/ad0c40b852d69706c04d48c8958677d2 to your computer and use it in GitHub Desktop.
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
syntax "papyrus" "[.]psc$" | |
header "^[Ss][Cc][Rr][Ii][Pp][Tt][Nn][Aa][Mm][Ee][[:space:]]" | |
comment ";" | |
# Keywords | |
icolor green "\<(bool|customeventname|float|int|scripteventname|string|structvarname|var)\>" | |
icolor brightyellow "\<(else(if)?|(end)?(if|while))\>" | |
icolor brightcyan "\<import\>" | |
icolor brightgreen "\<(scriptname|customevent|(end)?(event|function|group|property|state|struct))\>" | |
icolor blue "\<(auto(readonly)?|(beta|debug)only|const|global|native)\>" | |
icolor brightred "\<(false|none|true)\>" | |
icolor magenta "\<([ai]s|return)\>" | |
icolor brightmagenta "\<new\>" | |
icolor brightcyan "\<(extends|import)\>" | |
icolor cyan "\<(length|add|clear|insert|remove(last)?|r?find(struct)?)\>" | |
# Strings | |
icolor brightyellow ""([^"]|\\")*"" "<[^[:blank:]=]*>" | |
# Comments | |
icolor brightblue ";.*" | |
icolor brightblue start=";/" end="/;" | |
icolor brightblue start="[{]" end="[}]" | |
# Reminders | |
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>" | |
# Trailing whitespace | |
color ,green "[[:space:]]+$" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment