Enkodowanie nazw plików do UTF-8 przed przekazaniem ich do localrepo.commit. Powinno...
[redakcja.git] / project / static / js / reg_syntax / ruby.js
1 /**\r
2  * Ruby syntax v 1.0 \r
3  * \r
4  * v1.0 by Patrice De Saint Steban (2007/01/03)\r
5  *   \r
6 **/\r
7 editAreaLoader.load_syntax["ruby"] = {\r
8         'COMMENT_SINGLE' : {1 : '#'}\r
9         ,'COMMENT_MULTI' : {}\r
10         ,'QUOTEMARKS' : {1: "'", 2: '"'}\r
11         ,'KEYWORD_CASE_SENSITIVE' : true\r
12         ,'KEYWORDS' : {\r
13                 'reserved' : [\r
14                         'alias', 'and', 'BEGIN', 'begin', 'break', 'case', 'class', 'def', 'defined', 'do', 'else',\r
15                         'elsif', 'END', 'end', 'ensure', 'false', 'for', 'if', \r
16                         'in', 'module', 'next', 'not', 'or', 'redo', 'rescue', 'retry',\r
17                         'return', 'self', 'super', 'then', 'true', 'undef', 'unless', 'until', 'when', 'while', 'yield'\r
18                 ]\r
19         }\r
20         ,'OPERATORS' :[\r
21                 '+', '-', '/', '*', '=', '<', '>', '%', '!', '&', ';', '?', '`', ':', ','\r
22         ]\r
23         ,'DELIMITERS' :[\r
24                 '(', ')', '[', ']', '{', '}'\r
25         ]
26         ,'REGEXPS' : {
27                 'constants' : {\r
28                         'search' : '()([A-Z]\\w*)()'\r
29                         ,'class' : 'constants'\r
30                         ,'modifiers' : 'g'\r
31                         ,'execute' : 'before' \r
32                 }
33                 ,'variables' : {\r
34                         'search' : '()([\$\@\%]+\\w+)()'\r
35                         ,'class' : 'variables'\r
36                         ,'modifiers' : 'g'\r
37                         ,'execute' : 'before' \r
38                 }
39                 ,'numbers' : {\r
40                         'search' : '()(-?[0-9]+)()'\r
41                         ,'class' : 'numbers'\r
42                         ,'modifiers' : 'g'\r
43                         ,'execute' : 'before' \r
44                 }
45                 ,'symbols' : {\r
46                         'search' : '()(:\\w+)()'\r
47                         ,'class' : 'symbols'\r
48                         ,'modifiers' : 'g'\r
49                         ,'execute' : 'before'\r
50                 }
51         }\r
52         ,'STYLES' : {\r
53                 'COMMENTS': 'color: #AAAAAA;'\r
54                 ,'QUOTESMARKS': 'color: #660066;'\r
55                 ,'KEYWORDS' : {\r
56                         'reserved' : 'font-weight: bold; color: #0000FF;'\r
57                         }\r
58                 ,'OPERATORS' : 'color: #993300;'\r
59                 ,'DELIMITERS' : 'color: #993300;'\r
60                 ,'REGEXPS' : {
61                         'variables' : 'color: #E0BD54;'
62                         ,'numbers' : 'color: green;'
63                         ,'constants' : 'color: #00AA00;'
64                         ,'symbols' : 'color: #879EFA;'
65                 }       \r
66         }\r
67 };\r