filetype: p9rc # this is all buggy and shitty but it's better than nothing lmao detect: filename: ".rc$" header: "^#!.*/(env +)?rc( |$)" rules: # Flow control - statement: "\\b(if|else|while|for|in|switch|case|fn)\\b" # Logical operators - special: "(\\!|\\|\\||&&|~|\\^|=|`)" # Builtins - type: "\\b(\\.|break|builtin|cd|continue|echo|eval|exec|exit|flag|limit|newgrp|return|shift|umask|wait|whatis)\\b" # Variables - identifier: "\\$(\"|\\^)?[0-9A-Za-z_!@#$*?-]+(\\([^\\)]*\\))?" # String literals - constant.string: start: "'" end: "'" rules: [] - comment: start: "(^|\\s)#" end: "$" rules: - todo: "(TODO|XXX|FIXME):?"