mail[Wesnoth-commits] r33685 - /trunk/src/formula_tokenizer.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on March 15, 2009 - 17:42:
Author: mordante
Date: Sun Mar 15 17:42:07 2009
New Revision: 33685

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33685&view=rev
Log:
Whitespace cleanup.

Modified:
    trunk/src/formula_tokenizer.cpp

Modified: trunk/src/formula_tokenizer.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula_tokenizer.cpp?rev=33685&r1=33684&r2=33685&view=diff
==============================================================================
--- trunk/src/formula_tokenizer.cpp (original)
+++ trunk/src/formula_tokenizer.cpp Sun Mar 15 17:42:07 2009
@@ -32,23 +32,23 @@
 
 //create the array with list of possible tokens
 token_type token_types[] = { { 
regex("^(not\\b|and\\b|or\\b|where\\b|d(?=[^a-zA-Z])|\\*|\\+|-(?=[^>])|\\^|%|/|<=|>=|<|>|!=|=|\\.)"),
 TOKEN_OPERATOR },
-                               { regex("^functions\\b"),  TOKEN_KEYWORD },
-                               { regex("^def\\b"),        TOKEN_KEYWORD },
-                               { regex("^fai\\b"),        TOKEN_KEYWORD },
-                               { regex("^faiend\\b"),        TOKEN_KEYWORD },
-                               { regex("^'[^']*'"),       
TOKEN_STRING_LITERAL },
-                               { regex("^[a-zA-Z_]+"),    TOKEN_IDENTIFIER },
-                               { regex("^\\d+"),          TOKEN_INTEGER },
-                               { regex("^\\("),           TOKEN_LPARENS },
-                               { regex("^\\)"),           TOKEN_RPARENS },
-                               { regex("^\\["),           TOKEN_LSQUARE },
-                               { regex("^\\]"),           TOKEN_RSQUARE },
-                               { regex("^#.*?#"),         TOKEN_COMMENT },
-                               { regex("^,"),             TOKEN_COMMA },
-                               { regex("^;"),             TOKEN_SEMICOLON },
-                               { regex("^\\n"),          TOKEN_EOL },
-                               { regex("^([ ]|\\t|\\r|\\f)"),          
TOKEN_WHITESPACE },
-                               { regex("^->"),          TOKEN_POINTER }
+                               { regex("^functions\\b"),      TOKEN_KEYWORD 
},
+                               { regex("^def\\b"),            TOKEN_KEYWORD 
},
+                               { regex("^fai\\b"),            TOKEN_KEYWORD 
},
+                               { regex("^faiend\\b"),         TOKEN_KEYWORD 
},
+                               { regex("^'[^']*'"),           
TOKEN_STRING_LITERAL },
+                               { regex("^[a-zA-Z_]+"),        
TOKEN_IDENTIFIER },
+                               { regex("^\\d+"),              TOKEN_INTEGER 
},
+                               { regex("^\\("),               TOKEN_LPARENS 
},
+                               { regex("^\\)"),               TOKEN_RPARENS 
},
+                               { regex("^\\["),               TOKEN_LSQUARE 
},
+                               { regex("^\\]"),               TOKEN_RSQUARE 
},
+                               { regex("^#.*?#"),             TOKEN_COMMENT 
},
+                               { regex("^,"),                 TOKEN_COMMA },
+                               { regex("^;"),                 
TOKEN_SEMICOLON },
+                               { regex("^\\n"),               TOKEN_EOL },
+                               { regex("^([ ]|\\t|\\r|\\f)"), 
TOKEN_WHITESPACE },
+                               { regex("^->"),                TOKEN_POINTER }
 };
 
 }




Related Messages


Powered by MHonArc, Updated Sun Mar 15 18:00:30 2009