NamingLanguageElements

Main.NamingLanguageElements History

Hide minor edits - Show changes to output

September 16, 2009, at 11:29 UTC by AdminA -
Deleted lines 3-5:

== Sponsor Links ==
[http://www.bestessays.com.au/ write my essay]
September 16, 2009, at 11:28 UTC by AdminA -
Added lines 4-6:

== Sponsor Links ==
[http://www.bestessays.com.au/ write my essay]
February 14, 2007, at 19:10 UTC by Chris Thomas -
Deleted lines 3-213:

!! Everything below this line is obsoleted
----

A new name MUST have one of these as the root.

keyword.control -- continue, while, if, return, break, try, do, end, throw, …
keyword.operator -- instanceof, dynamic_cast, and, or, not, …
keyword.other -- «needs examples»

storage.type -- class, function, int, var, …
storage.modifier -- static, final, abstract, …
storage.other -- «needs examples»

support.function -- `NSLog, `NSBeep, `NSRectFill, …
support.class -- `NSWindow, `NSString, …
support.type -- `NSRect, …
support.constant -- `NSZeroRect, `NSNumericPadKeyMask, …
support.other -- «needs examples»

constant.numeric -- 42, 1.3f, 0x4AB1U, …
constant.character -- <, \e, \031, …
constant.language -- true, false, nil, YES, NO, …
constant.other -- «needs examples»

comment.line.double-slash -- // comment
comment.line.double-dash -- -- comment
comment.line.number-sign -- # comment
comment.line.percentage -- % comment
comment.line.<character> -- <character> comment
comment.block -- /* block */, <!-- block -->
comment.documentation -- embedded documentation

string.quoted.single -- 'foo'
string.quoted.double -- "foo"
string.quoted.triple -- """Python"""
string.quoted.other -- $'shell', %s{...}
string.unquoted -- here-docs and here-strings
string.interpolated -- `date`, $(pwd)
string.regexp -- /(\w+)/
string.other

variable.parameter -- def my_fun (parm)
variable.language -- this, super, self
variable.other -- @varName, $varName

invalid.illegal -- <pre>this & that</pre>
invalid.deprecated -- html <b>strict</b>

entity.name.function -- def my_function
entity.name.class -- class my_class
entity.name.tag -- <tag-name>
entity.name.section -- \section{name}
entity.other.inherited-class --
entity.other.attribute-name
entity.other

markup.underline
markup.underline.link
markup.bold
markup.italic
markup.other

meta.scope -- to describe a “scope”, e.g. meta.scope.interface for stuff between @interface and @end in objective-c
meta

Names derived from meta are not supposed to be visually styled, but they may be useful for scope specific settings or limiting the activation of a bundle item to a scope.

Previously declaration was used instead of meta, in particular the following derivations, and most language grammars haven't been updated to use meta instead:

declaration.function
declaration.class
declaration.tag
declaration

You can also extract all names in use by running this:

[=zsh # start zsh -- it rules!=]
[=cd Library/Application\ Support/TextMate/Bundles # where you keep them=]
[=for f in *.tmbundle/Syntaxes/*.plist; do pl < $f|grep 'name = "'; done|perl -pe 's/.*name = "(.*?)".*/$1/'|sort|uniq|tm=]

!! Everything below this line is obsoleted
----

When there are two (space separated) names in the scope, it's because that there is one construct consisting of several elements.
E.g. in objective-c we have a method consisting of a result type, a name, one or more arguments each having a name, a type, and a variable. So, the complete declaration is named '''declaration.function''' and the different parts are addressed with that bit, followed by a space and the name of the part, e.g. '''declaration.function function-name''' for just the function name.

Below are examples of other matches, sometimes with an example, where the match is displayed in italics.

There are seven base keywords: '''declaration''', '''comment''', '''constant''', '''keyword''', '''string''', '''variable''' and '''invalid'''.
Everything else should be a subclass of those.

----

:'''declaration.class class-name''':The name of the class being declared\\
@@class ''my_class''@@

:'''declaration.class class-inheritance''':The name of the class that this class inherits from\\
@@class my_class : ''my_parent''@@

:'''declaration.function function-name''':The name of the function being declared (use this for methods)\\
@@def ''my_function''@@

:'''declaration.function function-argument''':The argument variable of the function\\
@@def my_function (''foo'', ''bar'')@@

----

:'''comment''':Base category for all language comments

::'''comment.line''':A single line comment\\
@@# example 1@@\\
@@// example 2@@

::'''comment.block''':A (potential) multi line comment\\
@@/* comment */@@

----

:'''constant''':Base category for all language constants

::'''constant.numeric''':A numeric constant\\
@@int i = ''42''; // 42 is the numeric constat@@

::'''constant.character''':A character constant\\
@@<p>this ''&amp;amp;'' that</p> <!-- &amp;amp; being the character constant -->@@\\

----

:'''keyword.function''':A function supplied by the language/framework\\
@@''printf''("hello world\n");@@

:'''keyword.control''':Control structures like if, while, for, do, break, continue, return, ...\\
@@''while''(something)@@


:'''keyword.markup markup-name''':Stuff that markup a document\\
@@''<p>''Nice weather!''</p>''@@

:'''keyword.markup markup-argument''':If the markup takes an argument\\
@@<p ''id="foo"''>Nice weather!</p>@@

----

:'''keyword.operator''':Base category for all language operators

::'''keyword.operator.arithmetic''':Specific operators like\\
@@-, +, *, /, %@@

::'''keyword.operator.comparison''':Specific operators like\\
@@==,===,!=, !==, <>, <, >, <=, >=@@

::'''keyword.operator.increment-decrement''':Specific operators like\\
@@--, ++@@

::'''keyword.operator.logical''':Specific operators like\\
@@!, &&, ||, and, or, xor, as@@

::'''keyword.operator.string''':Specific operators like\\
@@. , .=@@

::'''keyword.operator.type''':Specific operators like\\
@@instanceof@@ in PHP

----

:'''string''':Base category for all language strings

::'''string.single-quoted''':Single quoted string\\
@@echo'' 'Enter username:' ''@@

::'''string.double-quoted''':Double quoted string\\
@@echo ''"$USER"'"@@

::'''string.backticked''':Backticked string\\
@@echo ''`who am i`''@@

::'''string.regexp''':A regular expression\\
@@/\w+/@@

----

:'''variable''':Base category for a basic language variable.\\
Like @@$varName@@ in PHP or @@varName@@ in Ruby/JS

::'''variable.local''':A local scope variable within functions etc. (uncertain of real use, just for consideration)

::'''variable.global''':A global variable.\\
Like @@$_SERVER[]@@ in PHP or @@$varName@@ in Ruby

::'''variable.instance''':An instance variable.\\
Like @@@varName@@ in Ruby

::'''variable.class''':A class variable.\\
Like @@$this->varName@@ in PHP or ''@@varName'' in Ruby

::'''variable.constant''':A language constant variable.\\
Like @@TRUE@@, @@FALSE@@, @@NULL@@, etc in PHP

::'''variable.constant.predefined''':A pre-defined language constant variable.\\
Like @@PHP_VERSION@@, @@E_USER_ERROR@@, etc in PHP. Uncertain of other languages equivalents

----

:'''invalid''':Base category for any item which is not correct within the current scope or language

::'''invalid.incomplete''':Stuff which is incomplete, like badly typed character entity in HTML

::'''invalid.illegal''':Stuff which is illegal, like badly placed ampersands in HTML

::'''invalid.deprecated''':Stuff which is deprecated, like tag arguments you shouldn't use, functions etc.
August 07, 2006, at 00:51 UTC by Infininight -
Added lines 5-7:
!! Everything below this line is obsoleted
----
August 07, 2006, at 00:51 UTC by Infininight -
Changed lines 3-4 from:
''Note:'' This page has been superceeded by: [[http://macromates.com/textmate/manual/language_grammars#naming_conventions|the manual.]]
to:
'''Note:''' This page has been superceeded by [[http://macromates.com/textmate/manual/language_grammars#naming_conventions|the manual]].
August 07, 2006, at 00:50 UTC by Infininight -
Added lines 3-4:
''Note:'' This page has been superceeded by: [[http://macromates.com/textmate/manual/language_grammars#naming_conventions|the manual.]]
August 14, 2005, at 00:40 UTC by Allan Odgaard -
Changed line 34 from:
string.quoted.triple -- """Python"""
to:
string.quoted.triple -- """Python"""
Changed line 38 from:
string.regex -- /(\w+)/
to:
string.regexp -- /(\w+)/
July 06, 2005, at 23:02 UTC by Allan Odgaard -
Deleted lines 61-65:
declaration.function
declaration.class
declaration.tag
declaration
Added lines 65-73:
Names derived from meta are not supposed to be visually styled, but they may be useful for scope specific settings or limiting the activation of a bundle item to a scope.

Previously declaration was used instead of meta, in particular the following derivations, and most language grammars haven't been updated to use meta instead:

declaration.function
declaration.class
declaration.tag
declaration
June 25, 2005, at 14:17 UTC by 220.245.178.133 -
Changed line 34 from:
string.quoted.tripple -- """Python"""
to:
string.quoted.triple -- """Python"""
June 24, 2005, at 13:03 UTC by Allan Odgaard -
Added line 67:
meta.scope -- to describe a “scope”, e.g. meta.scope.interface for stuff between @interface and @end in objective-c
June 21, 2005, at 15:36 UTC by 216.180.114.49 -
Changed lines 13-16 from:
support.function -- NSLog, NSBeep, NSRectFill, …
support.class -- NSWindow, NSString, …
support.type -- NSRect, …
support.constant -- NSZeroRect, NSNumericPadKeyMask, …
to:
support.function -- `NSLog, `NSBeep, `NSRectFill, …
support.class -- `NSWindow, `NSString, …
support.type -- `NSRect, …
support.constant -- `NSZeroRect, `NSNumericPadKeyMask, …
June 14, 2005, at 12:34 UTC by Allan Odgaard -
Added line 42:
variable.language -- this, super, self
June 13, 2005, at 23:23 UTC by Allan Odgaard -
Changed line 20 from:
constant.character -- &lt;, \e, \031, …
to:
constant.character -- &amp;lt;, \e, \031, …
June 13, 2005, at 23:20 UTC by Allan Odgaard -
Changed lines 66-67 from:
dummy
to:
meta
Changed lines 70-73 from:
@@[=zsh # start zsh -- it rules!=]@@
@@[=cd Library/Application\ Support/TextMate/Bundles # where you keep them=]@@
@@[=for f in *.tmbundle/Syntaxes/*.plist; do pl < $f|grep 'name = "'; done|perl -pe 's/.*name = "(.*?)".*/$1/'|sort|uniq|tm=]@@
to:
[=zsh # start zsh -- it rules!=]
[=cd Library/Application\ Support/TextMate/Bundles # where you keep them=]
[=for f in *.tmbundle/Syntaxes/*.plist; do pl < $f|grep 'name = "'; done|perl -pe 's/.*name = "(.*?)".*/$1/'|sort|uniq|tm=]
Changed lines 75-76 from:
---
to:
----
Changed line 203 from:
::'''invalid.deprecated''':Stuff which is deprecated, like tag arguments you shouldn't use, functions etc.
to:
::'''invalid.deprecated''':Stuff which is deprecated, like tag arguments you shouldn't use, functions etc.
June 13, 2005, at 23:18 UTC by Allan Odgaard -
Added lines 3-76:
A new name MUST have one of these as the root.

keyword.control -- continue, while, if, return, break, try, do, end, throw, …
keyword.operator -- instanceof, dynamic_cast, and, or, not, …
keyword.other -- «needs examples»

storage.type -- class, function, int, var, …
storage.modifier -- static, final, abstract, …
storage.other -- «needs examples»

support.function -- NSLog, NSBeep, NSRectFill, …
support.class -- NSWindow, NSString, …
support.type -- NSRect, …
support.constant -- NSZeroRect, NSNumericPadKeyMask, …
support.other -- «needs examples»

constant.numeric -- 42, 1.3f, 0x4AB1U, …
constant.character -- &lt;, \e, \031, …
constant.language -- true, false, nil, YES, NO, …
constant.other -- «needs examples»

comment.line.double-slash -- // comment
comment.line.double-dash -- -- comment
comment.line.number-sign -- # comment
comment.line.percentage -- % comment
comment.line.<character> -- <character> comment
comment.block -- /* block */, <!-- block -->
comment.documentation -- embedded documentation

string.quoted.single -- 'foo'
string.quoted.double -- "foo"
string.quoted.tripple -- """Python"""
string.quoted.other -- $'shell', %s{...}
string.unquoted -- here-docs and here-strings
string.interpolated -- `date`, $(pwd)
string.regex -- /(\w+)/
string.other

variable.parameter -- def my_fun (parm)
variable.other -- @varName, $varName

invalid.illegal -- <pre>this & that</pre>
invalid.deprecated -- html <b>strict</b>

entity.name.function -- def my_function
entity.name.class -- class my_class
entity.name.tag -- <tag-name>
entity.name.section -- \section{name}
entity.other.inherited-class --
entity.other.attribute-name
entity.other

markup.underline
markup.underline.link
markup.bold
markup.italic
markup.other

declaration.function
declaration.class
declaration.tag
declaration

dummy

You can also extract all names in use by running this:

@@[=zsh # start zsh -- it rules!=]@@
@@[=cd Library/Application\ Support/TextMate/Bundles # where you keep them=]@@
@@[=for f in *.tmbundle/Syntaxes/*.plist; do pl < $f|grep 'name = "'; done|perl -pe 's/.*name = "(.*?)".*/$1/'|sort|uniq|tm=]@@

!! Everything below this line is obsoleted
---
Deleted line 203:
May 02, 2005, at 19:35 UTC by Matsp -
Added lines 11-12:
----
Changed lines 25-29 from:
:'''comment.line''':A single line comment\\
to:
----

:'''comment''':Base category for all language comments

::'''comment.line''':A single line comment\\
Changed line 33 from:
:'''comment.block''':A (potential) multi line comment\\
to:
::'''comment.block''':A (potential) multi line comment\\
Changed lines 36-40 from:
:'''constant.numeric''':A numeric constant\\
to:
----

:'''constant''':Base category for all language constants

::'''constant.numeric''':A numeric constant\\
Changed line 43 from:
:'''constant.character''':A character constant\\
to:
::'''constant.character''':A character constant\\
Changed lines 46-47 from:
to:
----
Changed lines 54-55 from:
:'''keyword.operator''': Operators such as +, -, ...
to:
Changed lines 61-87 from:
:'''string.single-quoted''':Single quoted string\\
to:
----

:'''keyword.operator''':Base category for all language operators

::'''keyword.operator.arithmetic''':Specific operators like\\
@@-, +, *, /, %@@

::'''keyword.operator.comparison''':Specific operators like\\
@@==,===,!=, !==, <>, <, >, <=, >=@@

::'''keyword.operator.increment-decrement''':Specific operators like\\
@@--, ++@@

::'''keyword.operator.logical''':Specific operators like\\
@@!, &&, ||, and, or, xor, as@@

::'''keyword.operator.string''':Specific operators like\\
@@. , .=@@

::'''keyword.operator.type''':Specific operators like\\
@@instanceof@@ in PHP

----

:'''string''':Base category for all language strings

::'''string.single-quoted''':Single quoted string\\
Changed line 90 from:
:'''string.double-quoted''':Double quoted string\\
to:
::'''string.double-quoted''':Double quoted string\\
Changed line 93 from:
:'''string.backticked''':Backticked string\\
to:
::'''string.backticked''':Backticked string\\
Changed line 96 from:
:'''string.regexp''':A regular expression\\
to:
::'''string.regexp''':A regular expression\\
Changed lines 99-119 from:
:'''variable''':A basic language variable. Like ''$varName'' in PHP or ''varName'' in Ruby/JS

:'''variable.local''':A local scope variable within functions etc. (uncertain of real use, just for consideration)

:'''variable.global''':A global variable. Like ''$_SERVER[]'' in PHP or ''$varName'' in Ruby

:'''variable.instance''':An instance variable. Like ''@varName'' in Ruby

:'''variable.class''':A class variable. Like ''$this->varName'' in PHP or ''@@varName'' in Ruby

:'''variable.constant''':A language constant variable. Like ''TRUE'', ''FALSE'', ''NULL'', etc in PHP

:'''variable.constant.predefined''':A pre-defined language constant variable. Like ''PHP_VERSION'', ''E_USER_ERROR'', etc in PHP. Uncertain of other languages

:'''invalid''':Any item which is not correct within the current scope or language

:'''invalid.incomplete''':Stuff which is incomplete, like badly typed character entity in HTML

:'''invalid.illegal''':Stuff which is illegal, like badly placed ampersands in HTML

:'''invalid.deprecated''':Stuff which is deprecated, like tag arguments you shouldn't use, functions etc.
to:
----

:'''variable''':Base category for a basic language variable.\\
Like @@$varName@@ in PHP or @@varName@@ in Ruby/JS

::'''variable.local''':A local scope variable within functions etc. (uncertain of real use, just for consideration)

::'''variable.global''':A global variable.\\
Like @@$_SERVER[]@@ in PHP or @@$varName@@ in Ruby

::'''variable.instance''':An instance variable.\\
Like @@@varName@@ in Ruby

::'''variable.class''':A class variable.\\
Like @@$this->varName@@ in PHP or ''@@varName'' in Ruby

::'''variable.constant''':A language constant variable.\\
Like @@TRUE@@, @@FALSE@@, @@NULL@@, etc in PHP

::'''variable.constant.predefined''':A pre-defined language constant variable.\\
Like @@PHP_VERSION@@, @@E_USER_ERROR@@, etc in PHP. Uncertain of other languages equivalents

----

:'''invalid''':Base category for any item which is not correct within the current scope or language

::'''invalid.incomplete''':Stuff which is incomplete, like badly typed character entity in HTML

::'''invalid.illegal''':Stuff which is illegal, like badly placed ampersands in HTML

::'''invalid.deprecated''':Stuff which is deprecated, like tag arguments you shouldn't use, functions etc.
May 02, 2005, at 18:05 UTC by Matsp -
Added line 36:
Changed lines 55-56 from:
@@echo ''"$USER"''@@
to:
@@echo ''"$USER"'"@@
Changed lines 63-64 from:
:'''variable''':A variable reserved by the language? like maybe INT_MAX?
to:
:'''variable''':A basic language variable. Like ''$varName'' in PHP or ''varName'' in Ruby/JS

:'''variable.local''':A local scope variable within functions etc. (uncertain of real use, just for consideration)

:'''variable.global''':A global variable. Like ''$_SERVER[]'' in PHP or ''$varName'' in Ruby

:'''variable.instance''':An instance variable. Like ''@varName'' in Ruby

:'''variable.class''':A class variable. Like ''$this->varName'' in PHP or ''@@varName'' in Ruby

:'''variable.constant''':A language constant variable. Like ''TRUE'', ''FALSE'', ''NULL'', etc in PHP

:'''variable.constant.predefined''':A pre-defined language constant variable. Like ''PHP_VERSION'', ''E_USER_ERROR'', etc in PHP. Uncertain of other languages

:'''invalid''':Any item which is not correct within the current scope or language

:'''invalid.incomplete''':Stuff which is incomplete, like badly typed character entity in HTML
April 23, 2005, at 05:01 UTC by 64.81.33.177 -
Changed lines 35-36 from:
@@char lineFeed = ''&#039;\n&#039;'';@@
to:
April 22, 2005, at 22:49 UTC by Allan Odgaard -
Changed lines 12-13 from:
@@class ''foo''@@
to:
@@class ''my_class''@@
Changed lines 15-20 from:
@@class foo : ''bar''@@

:'''declaration.function function-name''':The name of the function being declared

:'''declaration.function function-argument''':The argument variable of the function
to:
@@class my_class : ''my_parent''@@

:'''declaration.function function-name''':The name of the function being declared (use this for methods)\\
@@def ''my_function''@@

:'''declaration.function function-argument''':The argument variable of the function\\
@@def my_function (''foo'', ''bar'')@@
Changed lines 28-29 from:
@@/* example */@@
to:
@@/* comment */@@
Changed lines 34-40 from:
@@<p>foo ''&amp;amp;'' bar</p> <!-- &amp;amp; being the character constant -->@@\\
@@char lineFeed = '''\n''';@@

:'''keyword.function''':A function supplied by the language/framework

:'''keyword.control''':Control structures like if, while, for, do, ...
to:
@@<p>this ''&amp;amp;'' that</p> <!-- &amp;amp; being the character constant -->@@\\
@@char lineFeed = ''&#039;\n&#039;'';@@

:'''keyword.function''':A function supplied by the language/framework\\
@@''printf''("hello world\n");@@

:'''keyword.control''':Control structures like if, while, for, do, break, continue, return, ...\\
@@''while''(something)@@
Changed lines 46-48 from:
@@''<p>''paragraph''</p>''@@\\
@@''\textbf{''bold''}''@@
to:
@@''<p>''Nice weather!''</p>''@@
Changed lines 49-50 from:
@@<p ''id="foo"''>paragraph</p>@@
to:
@@<p ''id="foo"''>Nice weather!</p>@@
Changed lines 52-53 from:
@@echo'' 'foo' ''@@
to:
@@echo'' 'Enter username:' ''@@
Changed line 67 from:
:'''invalid.deprecated''':Stuff which is deprecated, like tag arguments you shouldn't use, functions etc.
to:
:'''invalid.deprecated''':Stuff which is deprecated, like tag arguments you shouldn't use, functions etc.
April 22, 2005, at 20:14 UTC by Jeroen van der Ham -
Changed line 8 from:
There are five base keywords: '''declaration''', '''comment''', '''constant''', '''keyword''', '''string''', '''variable''' and '''invalid'''.
to:
There are seven base keywords: '''declaration''', '''comment''', '''constant''', '''keyword''', '''string''', '''variable''' and '''invalid'''.
April 22, 2005, at 20:12 UTC by 145.99.226.125 -
Changed line 8 from:
There are five base keywords: @@'''declaration'''@@, @@'''comment'''@@, @@'''constant'''@@, @@'''keyword'''@@, @@'''string'''@@, @@'''variable'''@@ and @@'''invalid'''@@.
to:
There are five base keywords: '''declaration''', '''comment''', '''constant''', '''keyword''', '''string''', '''variable''' and '''invalid'''.
April 22, 2005, at 20:11 UTC by 145.99.226.125 -
Added lines 8-10:
There are five base keywords: @@'''declaration'''@@, @@'''comment'''@@, @@'''constant'''@@, @@'''keyword'''@@, @@'''string'''@@, @@'''variable'''@@ and @@'''invalid'''@@.
Everything else should be a subclass of those.
April 22, 2005, at 19:49 UTC by 145.99.226.125 -
Deleted lines 0-28:
!! These scopes are styled by the Simple Theme

:comment:

:constant.numeric:

:declaration.class class-inheritance:

:declaration.class class-name:

:declaration.function function-argument:

:declaration.function function-name:

:invalid:

:invalid.trailing-whitespace:

:keyword:

:keyword.exception:

:keyword.identifier:

:string:

:string.regexp:

----
April 22, 2005, at 19:48 UTC by 145.99.226.125 -
Changed lines 32-44 from:
When there are two (space separated) names in the scope, it's because that there is one construct consisting of several elements. E.g. in objective-c we have a method consisting of a result type, a name, one or more arguments each having a name, a type, and a variable.

:declaration.class class-name:The name of the class being declared\\
@@class foo@@

:declaration.class class-inheritance:The name of the class that this class inherits from\\
@@class foo : bar@@

:declaration.function function-name:The name of the function being declared

:declaration.function function-argument:The argument variable of the function

:comment.line:A single line comment\\
to:
When there are two (space separated) names in the scope, it's because that there is one construct consisting of several elements.
E.g. in objective-c we have a method consisting of a result type, a name, one or more arguments each having a name, a type, and a variable. So, the complete declaration is named '''declaration.function''' and the different parts are addressed with that bit, followed by a space and the name of the part, e.g. '''declaration.function function-name''' for just the function name.

Below are examples of other matches, sometimes with an example, where the match is displayed in italics.

:'''declaration.class class-name''':The name of the class being declared\\
@@class ''foo''@@

:'''declaration.class class-inheritance''':The name of the class that this class inherits from\\
@@class foo : ''bar''@@

:'''declaration.function function-name''':The name of the function being declared

:'''declaration.function function-argument''':The argument variable of the function

:'''comment.line''':A single line comment\\
Changed line 51 from:
:comment.block:A (potential) multi line comment\\
to:
:'''comment.block''':A (potential) multi line comment\\
Changed lines 54-84 from:
:constant.numeric:A numeric constant\\
@@int i = 42; // 42 is the numeric constat@@

:constant.character:A character constant\\
@@<p>foo &amp;amp; bar</p> <!-- &amp;amp; being the character constant -->@@\\
@@char lineFeed = '\n';@@

:keyword.function:A function supplied by the language/framework

:keyword.control:Control structures like if, while, for, do, ...

:keyword.operator:Not really sure
- is this one my fault? i meant it to cover things like Perl's => , <=>, &&, ||, etc. - [[Profiles/Eric Hsu]]

:keyword.markup markup-name:Stuff that markup a document\\
@@<p>paragraph</p>@@\\
@@\textbf{bold}@@

:keyword.markup markup-argument:If the markup takes an argument\\
@@<p id="foo">paragraph</p>@@

:string.single-quoted:Single quoted string\\
@@echo 'foo'@@

:string.double-quoted:Double quoted string\\
@@echo "$USER"@@

:string.backticked:Backticked string\\
@@echo `who am i`@@

:string.regexp:A regular expression\\
to:
:'''constant.numeric''':A numeric constant\\
@@int i = ''42''; // 42 is the numeric constat@@

:'''constant.character''':A character constant\\
@@<p>foo ''&amp;amp;'' bar</p> <!-- &amp;amp; being the character constant -->@@\\
@@char lineFeed = '''\n''';@@

:'''keyword.function''':A function supplied by the language/framework

:'''keyword.control''':Control structures like if, while, for, do, ...

:'''keyword.operator''': Operators such as +, -, ...

:'''keyword.markup markup-name''':Stuff that markup a document\\
@@''<p>''paragraph''</p>''@@\\
@@''\textbf{''bold''}''@@

:'''keyword.markup markup-argument''':If the markup takes an argument\\
@@<p ''id="foo"''>paragraph</p>@@

:'''string.single-quoted''':Single quoted string\\
@@echo'' 'foo' ''@@

:'''string.double-quoted''':Double quoted string\\
@@echo ''"$USER"''@@

:'''string.backticked''':Backticked string\\
@@echo ''`who am i`''@@

:'''string.regexp''':A regular expression\\
Changed lines 86-90 from:
:variable:A variable reserved by the language? like maybe INT_MAX?

:invalid.illegal:Stuff which is illegal, like badly placed ampersands in HTML

:invalid.deprecated:Stuff which is deprecated, like tag arguments you shouldn't use, functions etc.
to:
:'''variable''':A variable reserved by the language? like maybe INT_MAX?

:'''invalid.illegal''':Stuff which is illegal, like badly placed ampersands in HTML

:'''invalid.deprecated''':Stuff which is deprecated, like tag arguments you shouldn't use, functions etc.
April 22, 2005, at 19:47 UTC by 64.142.66.23 -
Changed lines 63-64 from:
to:
- is this one my fault? i meant it to cover things like Perl's => , <=>, &&, ||, etc. - [[Profiles/Eric Hsu]]
April 22, 2005, at 19:31 UTC by Allan Odgaard -
Added lines 28-87:

----
!! These scopes should cover most stuff

When there are two (space separated) names in the scope, it's because that there is one construct consisting of several elements. E.g. in objective-c we have a method consisting of a result type, a name, one or more arguments each having a name, a type, and a variable.

:declaration.class class-name:The name of the class being declared\\
@@class foo@@

:declaration.class class-inheritance:The name of the class that this class inherits from\\
@@class foo : bar@@

:declaration.function function-name:The name of the function being declared

:declaration.function function-argument:The argument variable of the function

:comment.line:A single line comment\\
@@# example 1@@\\
@@// example 2@@

:comment.block:A (potential) multi line comment\\
@@/* example */@@

:constant.numeric:A numeric constant\\
@@int i = 42; // 42 is the numeric constat@@

:constant.character:A character constant\\
@@<p>foo &amp;amp; bar</p> <!-- &amp;amp; being the character constant -->@@\\
@@char lineFeed = '\n';@@

:keyword.function:A function supplied by the language/framework

:keyword.control:Control structures like if, while, for, do, ...

:keyword.operator:Not really sure

:keyword.markup markup-name:Stuff that markup a document\\
@@<p>paragraph</p>@@\\
@@\textbf{bold}@@

:keyword.markup markup-argument:If the markup takes an argument\\
@@<p id="foo">paragraph</p>@@

:string.single-quoted:Single quoted string\\
@@echo 'foo'@@

:string.double-quoted:Double quoted string\\
@@echo "$USER"@@

:string.backticked:Backticked string\\
@@echo `who am i`@@

:string.regexp:A regular expression\\
@@/\w+/@@

:variable:A variable reserved by the language? like maybe INT_MAX?

:invalid.illegal:Stuff which is illegal, like badly placed ampersands in HTML

:invalid.deprecated:Stuff which is deprecated, like tag arguments you shouldn't use, functions etc.
April 22, 2005, at 08:50 UTC by Allan Odgaard -
Changed lines 5-6 from:
:constants.numeric:
to:
:constant.numeric:
Changed lines 21-24 from:
:keywords.exception:

:keywords.identifier:
to:
:keyword.exception:

:keyword.identifier:
Changed lines 27-29 from:
:strings.regexp:

''A few of these words are still in their plural form, but that'll be changed, so all names should use the singular form.''
to:
:string.regexp:
April 22, 2005, at 08:30 UTC by Allan Odgaard -
Changed lines 1-4 from:
!! These names scopes are styled by the Simple Theme

:comments:
to:
!! These scopes are styled by the Simple Theme

:comment:
Changed lines 7-16 from:
:declaration name:

:declaration.classes class-inheritance:

:declaration.classes class-name:

:declaration.functions function-argument:

:declaration.functions function-name:
to:
:declaration.class class-inheritance:

:declaration.class class-name:

:declaration.function function-argument:

:declaration.function function-name:
Changed lines 19-27 from:
:keywords:

:keywords.exceptions:

:keywords.identifiers:

:strings:

:strings.regexp:
to:
:keyword:

:keywords.exception:

:keywords.identifier:

:string:

:strings.regexp:

''A few of these words are still in their plural form, but that'll be changed, so all names should use the singular form.''
April 22, 2005, at 08:22 UTC by Allan Odgaard -
Changed lines 1-2 from:
to:
!! These names scopes are styled by the Simple Theme
Changed line 29 from:
:strings.regexp:
to:
:strings.regexp:
April 22, 2005, at 08:20 UTC by Allan Odgaard -
Added lines 1-28:

:comments:

:constants.numeric:

:declaration name:

:declaration.classes class-inheritance:

:declaration.classes class-name:

:declaration.functions function-argument:

:declaration.functions function-name:

:invalid:

:invalid.trailing-whitespace:

:keywords:

:keywords.exceptions:

:keywords.identifiers:

:strings:

:strings.regexp: