Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Pascal function parsing
git-svn-id: http://svn.textmate.org/trunk/Bundles/Pascal.tmbundle@701 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
Chris Thomas committed Apr 24, 2005
1 parent 253fe24 commit 1ab699d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Syntaxes/Pascal.plist
@@ -1,6 +1,5 @@
{
// Pascal -- GNU Pascal, specifically -- chris@cjack.com. Feel free to modify, distribute, be happy. Share and enjoy.

comment = "Pascal -- GNU Pascal, specifically -- chris@cjack.com. Feel free to modify, distribute, be happy. Share and enjoy.";
name = "Pascal";
scopeName = "source.pascal";
fileTypes = ( p, pas );
Expand All @@ -18,7 +17,14 @@

{
name = "keyword.control.pascal";
match = "\\<(?i:(absolute|abstract|all|and|and_then|array|as|asm|attribute|begin|bindable|case|class|const|constructor|destructor|div|do|end|do|else|end|export|exports|external|far|file|finalization|for|forward|function|goto|if|implementation|import|in|inherited|initialization|interface|interrupt|is|label|library|mod|module|name|near|nil|not|object|of|only|operator|or|or_else|otherwise|packed|pow|private|procedure|program|property|protected|public|published|qualified|record|repeat|resident|restricted|segment|set|shl|shr|then|to|type|unit|until|uses|value|var|view|virtual|while|with|xor))\\>";
match = "\\<(?i:(absolute|abstract|all|and|and_then|array|as|asm|attribute|begin|bindable|case|class|const|constructor|destructor|div|do|end|do|else|end|export|exports|external|far|file|finalization|for|forward|goto|if|implementation|import|in|inherited|initialization|interface|interrupt|is|label|library|mod|module|name|near|nil|not|object|of|only|operator|or|or_else|otherwise|packed|pow|private|program|property|protected|public|published|qualified|record|repeat|resident|restricted|segment|set|shl|shr|then|to|type|unit|until|uses|value|var|view|virtual|while|with|xor))\\>";
},

{
name = "declaration.function";
match = "\\<(?i:(function|procedure))\\>\\s+(\\w+)";
captures = { 1 = { name = "keyword.control"; };
2 = { name = "function-name"; }; };
},

{ name = "constant.numeric.pascal"; match = "\\<((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\>"; },
Expand Down

0 comments on commit 1ab699d

Please sign in to comment.