Skip to content

Instantly share code, notes, and snippets.

@jherdman
Created January 29, 2009 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jherdman/54339 to your computer and use it in GitHub Desktop.
Save jherdman/54339 to your computer and use it in GitHub Desktop.
// 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