Skip to content

Instantly share code, notes, and snippets.

@osvein
Last active April 21, 2018 20:16
Show Gist options
  • Save osvein/ad0c40b852d69706c04d48c8958677d2 to your computer and use it in GitHub Desktop.
Save osvein/ad0c40b852d69706c04d48c8958677d2 to your computer and use it in GitHub Desktop.
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