Created
January 29, 2009 03:07
-
-
Save jherdman/54339 to your computer and use it in GitHub Desktop.
This file contains 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
// By Oliver Saunders. http://wiki.github.com/schapin/gospel/textmate-language-file | |
{ scopeName = 'source.gospel'; | |
fileTypes = ( 'gs' ); | |
foldingStartMarker = '/\*\*|\{\s*$'; | |
foldingStopMarker = '\*\*/|^\s*\}'; | |
patterns = ( | |
{ name = 'keyword.constant.gospel'; | |
match = '\b(recurse|namespace)\b'; | |
}, | |
{ name = 'meta.heading.text'; | |
match = '^\s*={3,}\s*(.*)$'; | |
}, | |
{ name = 'keyword.object.gospel'; | |
match = '\b(proto|self)\b'; | |
}, | |
{ name = 'keyword.gospel'; | |
match = '(\^|->)'; | |
}, | |
{ name = 'comment.gospel'; | |
match = '#.*$\n?'; | |
}, | |
{ name = 'constant.other.symbol.gospel'; | |
match = '\$[a-zA-Z_0-9!%&*\-+=<>?/:]+'; | |
}, | |
{ name = 'constant.numeric.gospel'; | |
match = '-?\d+\b'; | |
}, | |
{ name = 'entity.operator.gospel'; | |
match = '(?<=\s)[!%&*\-+=<>?/]+'; | |
}, | |
{ name = 'selector.gospel'; | |
match = '[a-zA-Z_0-9]+:?'; | |
}, | |
{ name = 'string.quoted.double.gospel'; | |
begin = '"'; | |
end = '"'; | |
patterns = ( | |
{ name = 'constant.character.escape.gospel'; | |
match = '\\.'; | |
}, | |
); | |
}, | |
{ name = 'invalid'; | |
comment = 'The meaning of single quoted strings is currently undefined in Gospel (Jan 25 2009)'; | |
begin = "'"; | |
end = "'"; | |
}, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment