code_rippa 0.0.7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile.lock +36 -0
  3. data/LICENSE +2 -2
  4. data/README.md +18 -1
  5. data/bin/code_rippa +15 -16
  6. data/code_rippa.gemspec +12 -10
  7. data/lib/code_rippa.rb +69 -51
  8. data/lib/code_rippa/syntax/actionscript.syntax +52 -52
  9. data/lib/code_rippa/syntax/active4d.syntax +226 -180
  10. data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
  11. data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
  12. data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
  13. data/lib/code_rippa/syntax/ada.syntax +19 -18
  14. data/lib/code_rippa/syntax/antlr.syntax +85 -85
  15. data/lib/code_rippa/syntax/apache.syntax +103 -109
  16. data/lib/code_rippa/syntax/applescript.syntax +244 -229
  17. data/lib/code_rippa/syntax/asp.syntax +41 -36
  18. data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
  19. data/lib/code_rippa/syntax/bibtex.syntax +88 -90
  20. data/lib/code_rippa/syntax/blog_html.syntax +17 -29
  21. data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
  22. data/lib/code_rippa/syntax/blog_text.syntax +15 -15
  23. data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
  24. data/lib/code_rippa/syntax/build.syntax +27 -27
  25. data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
  26. data/lib/code_rippa/syntax/c.syntax +31 -34
  27. data/lib/code_rippa/syntax/cake.syntax +27 -27
  28. data/lib/code_rippa/syntax/camlp4.syntax +23 -23
  29. data/lib/code_rippa/syntax/cm.syntax +19 -18
  30. data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
  31. data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
  32. data/lib/code_rippa/syntax/context_free.syntax +106 -106
  33. data/lib/code_rippa/syntax/cs.syntax +31 -34
  34. data/lib/code_rippa/syntax/css.syntax +112 -112
  35. data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
  36. data/lib/code_rippa/syntax/csv.syntax +40 -44
  37. data/lib/code_rippa/syntax/d.syntax +80 -84
  38. data/lib/code_rippa/syntax/diff.syntax +46 -45
  39. data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
  40. data/lib/code_rippa/syntax/dot.syntax +26 -26
  41. data/lib/code_rippa/syntax/doxygen.syntax +26 -26
  42. data/lib/code_rippa/syntax/dylan.syntax +35 -35
  43. data/lib/code_rippa/syntax/eiffel.syntax +39 -42
  44. data/lib/code_rippa/syntax/erlang.syntax +514 -511
  45. data/lib/code_rippa/syntax/f-script.syntax +44 -44
  46. data/lib/code_rippa/syntax/fortran.syntax +80 -76
  47. data/lib/code_rippa/syntax/fxscript.syntax +78 -77
  48. data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
  49. data/lib/code_rippa/syntax/gri.syntax +47 -47
  50. data/lib/code_rippa/syntax/groovy.syntax +105 -114
  51. data/lib/code_rippa/syntax/gtd.syntax +10 -10
  52. data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
  53. data/lib/code_rippa/syntax/haml.syntax +50 -50
  54. data/lib/code_rippa/syntax/haskell.syntax +47 -47
  55. data/lib/code_rippa/syntax/html-asp.syntax +15 -15
  56. data/lib/code_rippa/syntax/html_django.syntax +15 -14
  57. data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
  58. data/lib/code_rippa/syntax/html_mason.syntax +75 -74
  59. data/lib/code_rippa/syntax/html_rails.syntax +17 -27
  60. data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
  61. data/lib/code_rippa/syntax/icalendar.syntax +15 -15
  62. data/lib/code_rippa/syntax/inform.syntax +26 -26
  63. data/lib/code_rippa/syntax/ini.syntax +30 -30
  64. data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
  65. data/lib/code_rippa/syntax/io.syntax +49 -46
  66. data/lib/code_rippa/syntax/java.syntax +117 -126
  67. data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
  68. data/lib/code_rippa/syntax/javascript.syntax +141 -141
  69. data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
  70. data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
  71. data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
  72. data/lib/code_rippa/syntax/json.syntax +39 -39
  73. data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
  74. data/lib/code_rippa/syntax/lexflex.syntax +136 -136
  75. data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
  76. data/lib/code_rippa/syntax/lilypond.syntax +246 -337
  77. data/lib/code_rippa/syntax/lisp.syntax +32 -32
  78. data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
  79. data/lib/code_rippa/syntax/logo.syntax +13 -14
  80. data/lib/code_rippa/syntax/logtalk.syntax +81 -81
  81. data/lib/code_rippa/syntax/lua.syntax +50 -48
  82. data/lib/code_rippa/syntax/m.syntax +78 -78
  83. data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
  84. data/lib/code_rippa/syntax/makefile.syntax +19 -19
  85. data/lib/code_rippa/syntax/man.syntax +9 -9
  86. data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
  87. data/lib/code_rippa/syntax/mips.syntax +34 -34
  88. data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
  89. data/lib/code_rippa/syntax/modula-3.syntax +24 -24
  90. data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
  91. data/lib/code_rippa/syntax/mootools.syntax +283 -300
  92. data/lib/code_rippa/syntax/movable_type.syntax +91 -90
  93. data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
  94. data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
  95. data/lib/code_rippa/syntax/objective-c.syntax +134 -138
  96. data/lib/code_rippa/syntax/ocaml.syntax +455 -453
  97. data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
  98. data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
  99. data/lib/code_rippa/syntax/opengl.syntax +6 -6
  100. data/lib/code_rippa/syntax/pascal.syntax +43 -42
  101. data/lib/code_rippa/syntax/perl.syntax +612 -615
  102. data/lib/code_rippa/syntax/plain_text.syntax +17 -20
  103. data/lib/code_rippa/syntax/postscript.syntax +71 -69
  104. data/lib/code_rippa/syntax/processing.syntax +60 -60
  105. data/lib/code_rippa/syntax/prolog.syntax +17 -20
  106. data/lib/code_rippa/syntax/property_list.syntax +338 -359
  107. data/lib/code_rippa/syntax/python.syntax +487 -509
  108. data/lib/code_rippa/syntax/python_django.syntax +9 -10
  109. data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
  110. data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
  111. data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
  112. data/lib/code_rippa/syntax/r.syntax +42 -42
  113. data/lib/code_rippa/syntax/r_console.syntax +7 -8
  114. data/lib/code_rippa/syntax/ragel.syntax +109 -115
  115. data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
  116. data/lib/code_rippa/syntax/regexp.syntax +26 -26
  117. data/lib/code_rippa/syntax/release_notes.syntax +46 -26
  118. data/lib/code_rippa/syntax/remind.syntax +146 -146
  119. data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
  120. data/lib/code_rippa/syntax/rez.syntax +46 -45
  121. data/lib/code_rippa/syntax/ruby.syntax +533 -601
  122. data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
  123. data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
  124. data/lib/code_rippa/syntax/s5.syntax +35 -51
  125. data/lib/code_rippa/syntax/scheme.syntax +162 -260
  126. data/lib/code_rippa/syntax/scilab.syntax +18 -18
  127. data/lib/code_rippa/syntax/setext.syntax +82 -82
  128. data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
  129. data/lib/code_rippa/syntax/slate.syntax +91 -91
  130. data/lib/code_rippa/syntax/sql.syntax +137 -139
  131. data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
  132. data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
  133. data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
  134. data/lib/code_rippa/syntax/strings_file.syntax +20 -23
  135. data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
  136. data/lib/code_rippa/syntax/sweave.syntax +45 -45
  137. data/lib/code_rippa/syntax/swig.syntax +34 -33
  138. data/lib/code_rippa/syntax/tcl.syntax +87 -86
  139. data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
  140. data/lib/code_rippa/syntax/textile.syntax +111 -145
  141. data/lib/code_rippa/syntax/tsv.syntax +31 -33
  142. data/lib/code_rippa/syntax/twiki.syntax +141 -141
  143. data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
  144. data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
  145. data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
  146. data/lib/code_rippa/syntax/xml.syntax +95 -95
  147. data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
  148. data/lib/code_rippa/syntax/xsl.syntax +31 -31
  149. data/lib/code_rippa/syntax/yaml.syntax +86 -86
  150. data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
  151. data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
  152. data/lib/code_rippa/version.rb +2 -2
  153. data/test/fixtures/hello.rb +5 -3
  154. data/test/test_private_methods.rb +40 -40
  155. data/test/test_public_methods.rb +9 -18
  156. metadata +61 -63
@@ -1,22 +1,22 @@
1
- ---
1
+ ---
2
2
  name: GTD
3
- fileTypes:
3
+ fileTypes:
4
4
  - gtd
5
5
  scopeName: text.plain.gtd
6
6
  uuid: A984336E-2C65-4152-8FC0-34D2E73721DA
7
- patterns:
7
+ patterns:
8
8
  - name: markup.other.pagename
9
9
  match: "[A-Z][a-z]+([A-Z][a-z]*)+"
10
10
  - name: string.unquoted.gtd
11
- match: ^-\s{2}\S+\s
11
+ match: "^-\\s{2}\\S+\\s"
12
12
  - name: entity.name.tag.gtd
13
- match: ^<-\s\S+\s
13
+ match: "^<-\\s\\S+\\s"
14
14
  - name: constant.language.gtd
15
- match: ^->\s\S+\s
15
+ match: "^->\\s\\S+\\s"
16
16
  - name: variable.language.gtd
17
- match: ^\+\s{2}\S+\s
17
+ match: "^\\+\\s{2}\\S+\\s"
18
18
  - name: comment.line.gtd
19
- match: ^\^\s{2}\S+\s
19
+ match: "^\\^\\s{2}\\S+\\s"
20
20
  - name: support.class.exception.gtd
21
- match: ^\!\s{2}\S+\s
22
- keyEquivalent: ^~G
21
+ match: "^\\!\\s{2}\\S+\\s"
22
+ keyEquivalent: "^~G"
@@ -1,143 +1,143 @@
1
- ---
1
+ ---
2
2
  name: GTDalt
3
- fileTypes:
3
+ fileTypes:
4
4
  - gtd
5
5
  - gtdlog
6
6
  scopeName: text.gtdalt
7
- repository:
8
- title:
7
+ repository:
8
+ title:
9
9
  name: constant.other.title.gtdalt
10
- match: \S+(?:\s+\S+)*?(?=\s*(?:\[\d+\]|(?:due|at|from):|$))
11
- date:
12
- captures:
13
- "1":
10
+ match: "\\S+(?:\\s+\\S+)*?(?=\\s*(?:\\[\\d+\\]|(?:due|at|from):|$))"
11
+ date:
12
+ captures:
13
+ '1':
14
14
  name: keyword.operator.due.gtdalt
15
- "2":
15
+ '2':
16
16
  name: punctuation.separator.key-value.due.gtdalt
17
- "3":
17
+ '3':
18
18
  name: string.quoted.other.timestamp.due.gtdalt
19
- "4":
19
+ '4':
20
20
  name: punctuation.definition.due.gtdalt
21
- "5":
21
+ '5':
22
22
  name: punctuation.definition.due.gtdalt
23
- match: ((?:due|at|from)(:))((\[)\d{4}-\d{2}-\d{2}(\]))
24
- note:
23
+ match: "((?:due|at|from)(:))((\\[)\\d{4}-\\d{2}-\\d{2}(\\]))"
24
+ note:
25
25
  name: support.other.note.gtdalt
26
- captures:
27
- "1":
26
+ captures:
27
+ '1':
28
28
  name: punctuation.definition.note.gtdalt
29
- "2":
29
+ '2':
30
30
  name: punctuation.definition.note.gtdalt
31
- match: (\[)\d+(\])
32
- link:
33
- captures:
34
- "1":
31
+ match: "(\\[)\\d+(\\])"
32
+ link:
33
+ captures:
34
+ '1':
35
35
  name: punctuation.definition.link.gtdalt
36
- "2":
36
+ '2':
37
37
  name: markup.underline.link.gtdalt
38
- "3":
38
+ '3':
39
39
  name: punctuation.definition.link.gtdalt
40
- match: (<)([^>]*)(>)
40
+ match: "(<)([^>]*)(>)"
41
41
  uuid: C36472BD-A8CD-4613-A595-CEFB052E6181
42
- foldingStartMarker: ^\s*project
43
- patterns:
42
+ foldingStartMarker: "^\\s*project"
43
+ patterns:
44
44
  - name: meta.project.begin.gtdalt
45
- endCaptures:
46
- "0":
45
+ endCaptures:
46
+ '0':
47
47
  name: meta.line.project.end.gtdalt
48
- "1":
48
+ '1':
49
49
  name: keyword.control.project.end.gtdalt
50
- begin: ^\s*(project)\s+(.*)(\n)
51
- beginCaptures:
52
- "0":
50
+ begin: "^\\s*(project)\\s+(.*)(\\n)"
51
+ beginCaptures:
52
+ '0':
53
53
  name: meta.line.project.begin.gtdalt
54
- "1":
54
+ '1':
55
55
  name: keyword.control.project.begin.gtdalt
56
- "2":
56
+ '2':
57
57
  name: entity.name.section.project.title.gtdalt
58
- "3":
58
+ '3':
59
59
  name: meta.project.newline.gtdalt
60
- end: ^\s*(end)\s*
61
- patterns:
62
- - include: $self
60
+ end: "^\\s*(end)\\s*"
61
+ patterns:
62
+ - include: "$self"
63
63
  - name: meta.action.only-context.gtdalt
64
- captures:
65
- "1":
64
+ captures:
65
+ '1':
66
66
  name: storage.type.context.action.gtdalt
67
- "2":
67
+ '2':
68
68
  name: punctuation.definition.context.action.gtdalt
69
- match: ^\s*((@)\S++\n)
69
+ match: "^\\s*((@)\\S++\\n)"
70
70
  - name: meta.action.gtdalt
71
- begin: ^\s*((@)\S++\s)
72
- beginCaptures:
73
- "1":
71
+ begin: "^\\s*((@)\\S++\\s)"
72
+ beginCaptures:
73
+ '1':
74
74
  name: storage.type.context.action.gtdalt
75
- "2":
75
+ '2':
76
76
  name: punctuation.definition.context.action.gtdalt
77
- end: \n|$
78
- patterns:
77
+ end: "\\n|$"
78
+ patterns:
79
79
  - include: "#note"
80
80
  - include: "#date"
81
81
  - include: "#title"
82
82
  - name: meta.action.completed.gtdalt
83
- captures:
84
- "6":
83
+ captures:
84
+ '6':
85
85
  name: punctuation.definition.date.gtdalt
86
- "0":
86
+ '0':
87
87
  name: comment.line.number-sign.action.completed.gtdalt
88
- "2":
88
+ '2':
89
89
  name: punctuation.definition.completed.gtdalt
90
- "3":
90
+ '3':
91
91
  name: punctuation.definition.completed.gtdalt
92
- "4":
92
+ '4':
93
93
  name: string.quoted.other.timestamp.action.completed.gtdalt
94
- "5":
94
+ '5':
95
95
  name: punctuation.definition.date.gtdalt
96
- match: ^((#)completed(:))((\[)\d{4}-\d{2}-\d{2}(\]))\s*(.*)
96
+ match: "^((#)completed(:))((\\[)\\d{4}-\\d{2}-\\d{2}(\\]))\\s*(.*)"
97
97
  - name: meta.note.gtdalt
98
- begin: ^((\[)\d+(\]))
99
- beginCaptures:
100
- "1":
98
+ begin: "^((\\[)\\d+(\\]))"
99
+ beginCaptures:
100
+ '1':
101
101
  name: support.other.note.gtdalt
102
- "2":
102
+ '2':
103
103
  name: punctuation.definition.note.note.gtdalt
104
- "3":
104
+ '3':
105
105
  name: punctuation.definition.note.note.gtdalt
106
- end: \n|$
107
- patterns:
106
+ end: "\\n|$"
107
+ patterns:
108
108
  - include: "#link"
109
109
  - name: meta.action.archived.gtdalt
110
- captures:
111
- "6":
110
+ captures:
111
+ '6':
112
112
  name: storage.type.context.action.archived.gtdalt
113
- "7":
113
+ '7':
114
114
  name: comment.line.slash.action.archived.gtdalt
115
- "1":
115
+ '1':
116
116
  name: punctuation.separator.archived.gtdalt
117
- "2":
117
+ '2':
118
118
  name: string.quoted.other.timestamp.action.archived.gtdalt
119
- "3":
119
+ '3':
120
120
  name: punctuation.separator.archived.gtdalt
121
- "4":
121
+ '4':
122
122
  name: support.other.project.action.archived.gtdalt
123
- "5":
123
+ '5':
124
124
  name: punctuation.separator.archived.gtdalt
125
- match: ^(\/)(\d{4}-\d{2}-\d{2})(\/)([^\/]+)(\/)(@\S+)\s++(.*)$
125
+ match: "^(\\/)(\\d{4}-\\d{2}-\\d{2})(\\/)([^\\/]+)(\\/)(@\\S+)\\s++(.*)$"
126
126
  - name: meta.project.archived.gtdalt
127
- captures:
128
- "1":
127
+ captures:
128
+ '1':
129
129
  name: punctuation.separator.archived.gtdalt
130
- "2":
130
+ '2':
131
131
  name: string.quoted.other.timestamp.project.archived.gtdalt
132
- "3":
132
+ '3':
133
133
  name: punctuation.separator.archived.gtdalt
134
- "4":
134
+ '4':
135
135
  name: support.other.project.archived.gtdalt
136
- match: ^(\/)(\d{4}-\d{2}-\d{2})(\/)([^\/]+)$
136
+ match: "^(\\/)(\\d{4}-\\d{2}-\\d{2})(\\/)([^\\/]+)$"
137
137
  - name: comment.line.number-sign.generic.gtdalt
138
- captures:
139
- "1":
138
+ captures:
139
+ '1':
140
140
  name: punctuation.definition.comment.gtdalt
141
- match: ^(#)\s+.*$
142
- foldingStopMarker: ^\s*end\s*$
143
- keyEquivalent: ^~G
141
+ match: "^(#)\\s+.*$"
142
+ foldingStopMarker: "^\\s*end\\s*$"
143
+ keyEquivalent: "^~G"
@@ -1,88 +1,88 @@
1
- ---
1
+ ---
2
2
  name: Haml
3
- fileTypes:
3
+ fileTypes:
4
4
  - haml
5
5
  - sass
6
6
  scopeName: text.haml
7
- repository:
8
- continuation:
9
- captures:
10
- "1":
7
+ repository:
8
+ continuation:
9
+ captures:
10
+ '1':
11
11
  name: punctuation.separator.continuation.haml
12
- match: (\|)\s*\n
13
- rubyline:
12
+ match: "(\\|)\\s*\\n"
13
+ rubyline:
14
14
  name: meta.line.ruby.haml
15
- endCaptures:
16
- "1":
15
+ endCaptures:
16
+ '1':
17
17
  name: source.ruby.embedded.html
18
- "2":
18
+ '2':
19
19
  name: keyword.control.ruby.start-block
20
- begin: =|-|~
20
+ begin: "=|-|~"
21
21
  contentName: source.ruby.embedded.haml
22
- end: ((do|\{)( \|[^|]+\|)?)$|$|^(?!.*\|\s*$)
23
- patterns:
22
+ end: "((do|\\{)( \\|[^|]+\\|)?)$|$|^(?!.*\\|\\s*$)"
23
+ patterns:
24
24
  - name: comment.line.number-sign.ruby
25
25
  match: "#.*$"
26
26
  comment: Hack to let ruby comments work in this context properly
27
27
  - include: source.ruby.rails
28
28
  - include: "#continuation"
29
29
  uuid: 3D727049-DD05-45DF-92A5-D50EA36FD035
30
- foldingStartMarker: ^\s*([-%#\:\.\w\=].*)\s$
31
- patterns:
30
+ foldingStartMarker: "^\\s*([-%#\\:\\.\\w\\=].*)\\s$"
31
+ patterns:
32
32
  - name: meta.prolog.haml
33
- captures:
34
- "1":
33
+ captures:
34
+ '1':
35
35
  name: punctuation.definition.prolog.haml
36
- match: ^(!!!)($|\s.*)
36
+ match: "^(!!!)($|\\s.*)"
37
37
  - name: comment.line.slash.haml
38
- captures:
39
- "1":
38
+ captures:
39
+ '1':
40
40
  name: punctuation.section.comment.haml
41
- match: ^ *(/)\s*\S.*$\n?
41
+ match: "^ *(/)\\s*\\S.*$\\n?"
42
42
  - name: comment.block.haml
43
- begin: ^( *)(/)\s*$
44
- beginCaptures:
45
- "2":
43
+ begin: "^( *)(/)\\s*$"
44
+ beginCaptures:
45
+ '2':
46
46
  name: punctuation.section.comment.haml
47
- end: ^(?!\1 )
48
- patterns:
47
+ end: "^(?!\\1 )"
48
+ patterns:
49
49
  - include: text.haml
50
- - captures:
51
- "1":
50
+ - captures:
51
+ '1':
52
52
  name: meta.tag.haml
53
- "2":
53
+ '2':
54
54
  name: punctuation.definition.tag.haml
55
- "3":
55
+ '3':
56
56
  name: entity.name.tag.haml
57
- begin: ^\s*(?:((%)([\w:]+))|(?=\.|#))
58
- end: $|(?!\.|#|\{|\[|=|-|~|/)
59
- patterns:
57
+ begin: "^\\s*(?:((%)([\\w:]+))|(?=\\.|#))"
58
+ end: "$|(?!\\.|#|\\{|\\[|=|-|~|/)"
59
+ patterns:
60
60
  - name: entity.name.tag.class.haml
61
- match: \.[\w-]+
61
+ match: "\\.[\\w-]+"
62
62
  - name: entity.name.tag.id.haml
63
63
  match: "#[\\w-]+"
64
64
  - name: meta.section.attributes.haml
65
- begin: \{(?=.*\}|.*\|\s*$)
66
- end: \}|$|^(?!.*\|\s*$)
67
- patterns:
65
+ begin: "\\{(?=.*\\}|.*\\|\\s*$)"
66
+ end: "\\}|$|^(?!.*\\|\\s*$)"
67
+ patterns:
68
68
  - include: source.ruby.rails
69
69
  - include: "#continuation"
70
70
  - name: meta.section.object.haml
71
- begin: \[(?=.*\]|.*\|\s*$)
72
- end: \]|$|^(?!.*\|\s*$)
73
- patterns:
71
+ begin: "\\[(?=.*\\]|.*\\|\\s*$)"
72
+ end: "\\]|$|^(?!.*\\|\\s*$)"
73
+ patterns:
74
74
  - include: source.ruby.rails
75
75
  - include: "#continuation"
76
76
  - include: "#rubyline"
77
77
  - name: punctuation.terminator.tag.haml
78
- match: /
79
- - captures:
80
- "1":
78
+ match: "/"
79
+ - captures:
80
+ '1':
81
81
  name: meta.escape.haml
82
- match: ^\s*(\\.)
83
- - begin: ^\s*(?==|-|~)
84
- end: $
85
- patterns:
82
+ match: "^\\s*(\\\\.)"
83
+ - begin: "^\\s*(?==|-|~)"
84
+ end: "$"
85
+ patterns:
86
86
  - include: "#rubyline"
87
- foldingStopMarker: ^\s*$
88
- keyEquivalent: ^~H
87
+ foldingStopMarker: "^\\s*$"
88
+ keyEquivalent: "^~H"
@@ -1,88 +1,88 @@
1
- ---
1
+ ---
2
2
  name: Haskell
3
- fileTypes:
3
+ fileTypes:
4
4
  - hs
5
5
  scopeName: source.haskell
6
6
  uuid: 5C034675-1F6D-497E-8073-369D37E2FD7D
7
- patterns:
7
+ patterns:
8
8
  - name: entity.name.function.infix.haskell
9
- captures:
10
- "1":
9
+ captures:
10
+ '1':
11
11
  name: punctuation.definition.entity.haskell
12
- "2":
12
+ '2':
13
13
  name: punctuation.definition.entity.haskell
14
- match: (`).*(`)
14
+ match: "(`).*(`)"
15
15
  - name: keyword.other.haskell
16
- match: \b(otherwise|module|where|import|data|type|case|of|let|in|instance|deriving|class|newtype|default|hiding|as)\b
16
+ match: "\\b(otherwise|module|where|import|data|type|case|of|let|in|instance|deriving|class|newtype|default|hiding|as)\\b"
17
17
  - name: punctuation.separator.equal-sign.haskell
18
- match: (?<![<=>/])=(?![=])
18
+ match: "(?<![<=>/])=(?![=])"
19
19
  - name: punctuation.separator.pipe-sign.haskell
20
- match: (?<!\|)\|(?!(\||[\(\),_a-zA-Z0-9\s]*<-))
20
+ match: "(?<!\\|)\\|(?!(\\||[\\(\\),_a-zA-Z0-9\\s]*<-))"
21
21
  - name: keyword.operator.haskell
22
- match: \b(infixl|infixr)\b
22
+ match: "\\b(infixl|infixr)\\b"
23
23
  - name: keyword.control.haskell
24
- match: \b(do|if|then|else)\b
24
+ match: "\\b(do|if|then|else)\\b"
25
25
  - name: meta.preprocessor.haskell
26
- captures:
27
- "1":
26
+ captures:
27
+ '1':
28
28
  name: punctuation.definition.preprocessor.haskell
29
- match: ^\s*(#)\s*\w+
29
+ match: "^\\s*(#)\\s*\\w+"
30
30
  - name: string.quoted.double.haskell
31
- endCaptures:
32
- "0":
31
+ endCaptures:
32
+ '0':
33
33
  name: punctuation.definition.string.end.haskell
34
34
  begin: "\""
35
- beginCaptures:
36
- "0":
35
+ beginCaptures:
36
+ '0':
37
37
  name: punctuation.definition.string.begin.haskell
38
38
  end: "\""
39
- patterns:
39
+ patterns:
40
40
  - name: constant.character.escape.haskell
41
- match: \\.
41
+ match: "\\\\."
42
42
  - name: string.quoted.single.haskell
43
- endCaptures:
44
- "0":
43
+ endCaptures:
44
+ '0':
45
45
  name: punctuation.definition.string.end.haskell
46
46
  begin: "[^\\w']'"
47
- beginCaptures:
48
- "0":
47
+ beginCaptures:
48
+ '0':
49
49
  name: punctuation.definition.string.begin.haskell
50
50
  end: "'"
51
- patterns:
51
+ patterns:
52
52
  - name: constant.character.escape.haskell
53
- match: \\.
53
+ match: "\\\\."
54
54
  - name: meta.function.type-declaration.haskell
55
- begin: ^\s*([a-z_][a-zA-Z0-9_]*|\([|!%$+\-.,=</>]+\))\s*(::)
56
- beginCaptures:
57
- "1":
55
+ begin: "^\\s*([a-z_][a-zA-Z0-9_]*|\\([|!%$+\\-.,=</>]+\\))\\s*(::)"
56
+ beginCaptures:
57
+ '1':
58
58
  name: entity.name.function.haskell
59
- "2":
59
+ '2':
60
60
  name: punctuation.separator.double-colon.haskell
61
- end: $\n?
62
- patterns:
61
+ end: "$\\n?"
62
+ patterns:
63
63
  - name: punctuation.separator.arrow.haskell
64
- match: ->
64
+ match: "->"
65
65
  - name: punctuation.separator.big-arrow.haskell
66
- match: =>
66
+ match: "=>"
67
67
  - name: variable.other.generic-type.haskell
68
- match: \b[a-z][a-zA-Z0-9,()_]*\b
68
+ match: "\\b[a-z][a-zA-Z0-9,()_]*\\b"
69
69
  - name: constant.other.haskell
70
- match: \b[A-Z][a-zA-Z0-9,()_]*\b
70
+ match: "\\b[A-Z][a-zA-Z0-9,()_]*\\b"
71
71
  - name: constant.other.haskell
72
- match: \b[A-Z]\w*\b
72
+ match: "\\b[A-Z]\\w*\\b"
73
73
  - name: comment.line.double-dash.haskell
74
- captures:
75
- "1":
74
+ captures:
75
+ '1':
76
76
  name: punctuation.definition.comment.haskell
77
- match: (--).*$\n?
77
+ match: "(--).*$\\n?"
78
78
  - name: comment.block.haskell
79
- captures:
80
- "0":
79
+ captures:
80
+ '0':
81
81
  name: punctuation.definition.comment.haskell
82
82
  begin: "{-"
83
- end: -}
83
+ end: "-}"
84
84
  - name: entity.name.function.builtin.prelude.haskell
85
- match: \b(abs|acos|acosh|all|and|any|appendFile|applyM|asTypeOf|asin|asinh|atan|atan2|atanh|break|catch|ceiling|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|div|divMod|drop|dropWhile|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromEnum|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|head|id|init|interact|ioError|isDenormalized|isIEEE|isInfinite|isNaN|isNegativeZero|iterate|last|lcm|length|lex|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|odd|or|otherwise|pi|pred|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|read|readFile|readIO|readList|readLn|readParen|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showList|showParen|showString|shows|showsPrec|significand|signum|sin|sinh|snd|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|toEnum|toInteger|toRational|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b
85
+ match: "\\b(abs|acos|acosh|all|and|any|appendFile|applyM|asTypeOf|asin|asinh|atan|atan2|atanh|break|catch|ceiling|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|div|divMod|drop|dropWhile|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromEnum|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|head|id|init|interact|ioError|isDenormalized|isIEEE|isInfinite|isNaN|isNegativeZero|iterate|last|lcm|length|lex|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|odd|or|otherwise|pi|pred|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|read|readFile|readIO|readList|readLn|readParen|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showList|showParen|showString|shows|showsPrec|significand|signum|sin|sinh|snd|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|toEnum|toInteger|toRational|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\\b"
86
86
  - name: entity.name.function.infix.haskell
87
- match: \([|!%$+\-.,=</>]+\)
88
- keyEquivalent: ^~H
87
+ match: "\\([|!%$+\\-.,=</>]+\\)"
88
+ keyEquivalent: "^~H"