Changeset 0b4bd626d4a70b6e4267b294a51b4401d273ec41
- Timestamp:
- 06/10/2008 10:20:37 AM
(2 months ago)
- Author:
- mitchell <mitchell@frost.(none)>
- git-committer:
- mitchell <mitchell@frost.(none)> 1213118437 -0400
- git-parent:
[83e0b7126d13cff4dcb18a58a817102873a9ed29]
- git-author:
- mitchell <mitchell@frost.(none)> 1213118437 -0400
- Message:
Fixed typos in parsers as per the typo in PARSER_DOC.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r242cbc6 |
r0b4bd62 |
|
| 60 | 60 | |
|---|
| 61 | 61 | action ada_ecallback { |
|---|
| 62 | | callback(ADA_LANG, entity, cint(ts), cint(te)); |
|---|
| | 62 | callback(ADA_LANG, ada_entities[entity], cint(ts), cint(te)); |
|---|
| 63 | 63 | } |
|---|
| 64 | 64 | |
|---|
| r5c26531 |
r0b4bd62 |
|
| 75 | 75 | |
|---|
| 76 | 76 | action ac_ecallback { |
|---|
| 77 | | callback(AC_LANG, entity, cint(ts), cint(te)); |
|---|
| | 77 | callback(AC_LANG, ac_entities[entity], cint(ts), cint(te)); |
|---|
| 78 | 78 | } |
|---|
| 79 | 79 | |
|---|
| re105369 |
r0b4bd62 |
|
| 62 | 62 | |
|---|
| 63 | 63 | action awk_ecallback { |
|---|
| 64 | | callback(AWK_LANG, entity, cint(ts), cint(te)); |
|---|
| | 64 | callback(AWK_LANG, awk_entities[entity], cint(ts), cint(te)); |
|---|
| 65 | 65 | } |
|---|
| 66 | 66 | |
|---|
| rc163723 |
r0b4bd62 |
|
| 57 | 57 | |
|---|
| 58 | 58 | action bat_ecallback { |
|---|
| 59 | | callback(BAT_LANG, entity, cint(ts), cint(te)); |
|---|
| | 59 | callback(BAT_LANG, bat_entities[entity], cint(ts), cint(te)); |
|---|
| 60 | 60 | } |
|---|
| 61 | 61 | |
|---|
| r89a3647 |
r0b4bd62 |
|
| 90 | 90 | |
|---|
| 91 | 91 | action boo_ecallback { |
|---|
| 92 | | callback(BOO_LANG, entity, cint(ts), cint(te)); |
|---|
| | 92 | callback(BOO_LANG, boo_entities[entity], cint(ts), cint(te)); |
|---|
| 93 | 93 | } |
|---|
| 94 | 94 | |
|---|
| rd5b334d |
r0b4bd62 |
|
| 105 | 105 | c_comment_entity = c_line_comment_entity | c_block_comment_entity; |
|---|
| 106 | 106 | |
|---|
| 107 | | c_sq_str_entity = '\'' ([^'\\] | '\\' any)* '\''; |
|---|
| 108 | | c_dq_str_entity = '"' ([^"\\] | '\\' any)* '"'; |
|---|
| 109 | | c_string_entity = c_sq_str_entity | c_dq_str_entity; |
|---|
| | 107 | c_string_entity = sq_str_with_escapes | dq_str_with_escapes; |
|---|
| 110 | 108 | |
|---|
| 111 | 109 | c_number_entity = float | integer; |
|---|
| rbe30654 |
r0b4bd62 |
|
| 153 | 153 | |
|---|
| 154 | 154 | action cshtml_ecallback { |
|---|
| 155 | | callback(CSHTML_LANG, entity, cint(ts), cint(te)); |
|---|
| | 155 | callback(CSHTML_LANG, cshtml_entities[entity], cint(ts), cint(te)); |
|---|
| 156 | 156 | } |
|---|
| 157 | 157 | |
|---|
| rba0557e |
r0b4bd62 |
|
| 19 | 19 | float = [+\-]? ((digit* '.' digit+) | (digit+ '.' digit*) | digit+) |
|---|
| 20 | 20 | [eE] [+\-]? digit+; |
|---|
| | 21 | |
|---|
| | 22 | # common entities |
|---|
| | 23 | sq_str = '\'' [^']* '\''; |
|---|
| | 24 | dq_str = '"' [^"]* '"'; |
|---|
| | 25 | sq_str_with_escapes = '\'' ([^'\\] | '\\' any)* '\''; |
|---|
| | 26 | dq_str_with_escapes = '"' ([^"\\] | '\\' any)* '"'; |
|---|
| 21 | 27 | |
|---|
| 22 | 28 | # common actions |
|---|
| r42afa2b |
r0b4bd62 |
|
| 89 | 89 | |
|---|
| 90 | 90 | action css_ecallback { |
|---|
| 91 | | callback(CSS_LANG, entity, cint(ts), cint(te)); |
|---|
| | 91 | callback(CSS_LANG, css_entities[entity], cint(ts), cint(te)); |
|---|
| 92 | 92 | } |
|---|
| 93 | 93 | |
|---|
| r7b30a29 |
r0b4bd62 |
|
| 122 | 122 | |
|---|
| 123 | 123 | action c_ecallback { |
|---|
| 124 | | callback(D_LANG, c_entities[entity], cint(ts), cint(te)); |
|---|
| | 124 | callback(D_LANG, d_entities[entity], cint(ts), cint(te)); |
|---|
| 125 | 125 | } |
|---|
| 126 | 126 | |
|---|
| rd490b46 |
r0b4bd62 |
|
| 62 | 62 | |
|---|
| 63 | 63 | action dcl_ecallback { |
|---|
| 64 | | callback(DCL_LANG, entity, cint(ts), cint(te)); |
|---|
| | 64 | callback(DCL_LANG, dcl_entities[entity], cint(ts), cint(te)); |
|---|
| 65 | 65 | } |
|---|
| 66 | 66 | |
|---|
| r4d8d40d |
r0b4bd62 |
|
| 71 | 71 | |
|---|
| 72 | 72 | action dylan_ecallback { |
|---|
| 73 | | callback(DYLAN_LANG, entity, cint(ts), cint(te)); |
|---|
| | 73 | callback(DYLAN_LANG, dylan_entities[entity], cint(ts), cint(te)); |
|---|
| 74 | 74 | } |
|---|
| 75 | 75 | |
|---|
| r8ae92e1 |
r0b4bd62 |
|
| 62 | 62 | |
|---|
| 63 | 63 | action ebuild_ecallback { |
|---|
| 64 | | callback(EBUILD_LANG, entity, cint(ts), cint(te)); |
|---|
| | 64 | callback(EBUILD_LANG, ebuild_entities[entity], cint(ts), cint(te)); |
|---|
| 65 | 65 | } |
|---|
| 66 | 66 | |
|---|
| r792f603 |
r0b4bd62 |
|
| 62 | 62 | |
|---|
| 63 | 63 | action erlang_ecallback { |
|---|
| 64 | | callback(ERLANG_LANG, entity, cint(ts), cint(te)); |
|---|
| | 64 | callback(ERLANG_LANG, erlang_entities[entity], cint(ts), cint(te)); |
|---|
| 65 | 65 | } |
|---|
| 66 | 66 | |
|---|
| r7d33631 |
r0b4bd62 |
|
| 62 | 62 | |
|---|
| 63 | 63 | action exheres_ecallback { |
|---|
| 64 | | callback(EXHERES_LANG, entity, cint(ts), cint(te)); |
|---|
| | 64 | callback(EXHERES_LANG, exheres_entities[entity], cint(ts), cint(te)); |
|---|
| 65 | 65 | } |
|---|
| 66 | 66 | |
|---|
| r1cfdf49 |
r0b4bd62 |
|
| 11 | 11 | |
|---|
| 12 | 12 | // the languages entities |
|---|
| 13 | | const char *fortranfixed_entities[] = { |
|---|
| | 13 | const char *ffixed_entities[] = { |
|---|
| 14 | 14 | "space", "comment", "string", "any" |
|---|
| 15 | 15 | }; |
|---|
| … | … | |
| 62 | 62 | |
|---|
| 63 | 63 | action ffixed_ecallback { |
|---|
| 64 | | callback(FORTRANFIXED_LANG, entity, cint(ts), cint(te)); |
|---|
| | 64 | callback(FORTRANFIXED_LANG, ffixed_entities[entity], cint(ts), cint(te)); |
|---|
| 65 | 65 | } |
|---|
| 66 | 66 | |
|---|
| r1cfdf49 |
r0b4bd62 |
|
| 11 | 11 | |
|---|
| 12 | 12 | // the languages entities |
|---|
| 13 | | const char *fortranfree_entities[] = { |
|---|
| | 13 | const char *ffree_entities[] = { |
|---|
| 14 | 14 | "space", "comment", "string", "any" |
|---|
| 15 | 15 | }; |
|---|
| … | … | |
| 76 | 76 | |
|---|
| 77 | 77 | action ffree_ecallback { |
|---|
| 78 | | callback(FORTRANFREE_LANG, entity, cint(ts), cint(te)); |
|---|
| | 78 | callback(FORTRANFREE_LANG, ffree_entities[entity], cint(ts), cint(te)); |
|---|
| 79 | 79 | } |
|---|
| 80 | 80 | |
|---|
| r92d54fb |
r0b4bd62 |
|
| 96 | 96 | |
|---|
| 97 | 97 | action groovy_ecallback { |
|---|
| 98 | | callback(GROOVY_LANG, entity, cint(ts), cint(te)); |
|---|
| | 98 | callback(GROOVY_LANG, groovy_entities[entity], cint(ts), cint(te)); |
|---|
| 99 | 99 | } |
|---|
| 100 | 100 | |
|---|
| r4b02ba1 |
r0b4bd62 |
|
| 81 | 81 | |
|---|
| 82 | 82 | action haskell_ecallback { |
|---|
| 83 | | callback(HASKELL_LANG, entity, cint(ts), cint(te)); |
|---|
| | 83 | callback(HASKELL_LANG, haskell_entities[entity], cint(ts), cint(te)); |
|---|
| 84 | 84 | } |
|---|
| 85 | 85 | |
|---|
| r688ba8c |
r0b4bd62 |
|
| 128 | 128 | |
|---|
| 129 | 129 | action html_ecallback { |
|---|
| 130 | | callback(HTML_LANG, entity, cint(ts), cint(te)); |
|---|
| | 130 | callback(HTML_LANG, html_entities[entity], cint(ts), cint(te)); |
|---|
| 131 | 131 | } |
|---|
| 132 | 132 | |
|---|
| ra8bce61 |
r0b4bd62 |
|
| 93 | 93 | |
|---|
| 94 | 94 | action js_ecallback { |
|---|
| 95 | | callback(JS_LANG, entity, cint(ts), cint(te)); |
|---|
| | 95 | callback(JS_LANG, js_entities[entity], cint(ts), cint(te)); |
|---|
| 96 | 96 | } |
|---|
| 97 | 97 | |
|---|
| r393eda4 |
r0b4bd62 |
|
| 153 | 153 | |
|---|
| 154 | 154 | action jsp_ecallback { |
|---|
| 155 | | callback(JSP_LANG, entity, cint(ts), cint(te)); |
|---|
| | 155 | callback(JSP_LANG, jsp_entities[entity], cint(ts), cint(te)); |
|---|
| 156 | 156 | } |
|---|
| 157 | 157 | |
|---|
| rec46805 |
r0b4bd62 |
|
| 69 | 69 | |
|---|
| 70 | 70 | action lisp_ecallback { |
|---|
| 71 | | callback(LISP_LANG, entity, cint(ts), cint(te)); |
|---|
| | 71 | callback(LISP_LANG, lisp_entities[entity], cint(ts), cint(te)); |
|---|
| 72 | 72 | } |
|---|
| 73 | 73 | |
|---|
| rd272ab2 |
r0b4bd62 |
|
| 128 | 128 | |
|---|
| 129 | 129 | action mxml_ecallback { |
|---|
| 130 | | callback(MXML_LANG, entity, cint(ts), cint(te)); |
|---|
| | 130 | callback(MXML_LANG, mxml_entities[entity], cint(ts), cint(te)); |
|---|
| 131 | 131 | } |
|---|
| 132 | 132 | |
|---|
| r70ff182 |
r0b4bd62 |
|
| 87 | 87 | |
|---|
| 88 | 88 | action pascal_ecallback { |
|---|
| 89 | | callback(PASCAL_LANG, entity, cint(ts), cint(te)); |
|---|
| | 89 | callback(PASCAL_LANG, pascal_entities[entity], cint(ts), cint(te)); |
|---|
| 90 | 90 | } |
|---|
| 91 | 91 | |
|---|
| r145f509 |
r0b4bd62 |
|
| 107 | 107 | |
|---|
| 108 | 108 | action perl_ecallback { |
|---|
| 109 | | callback(PERL_LANG, entity, cint(ts), cint(te)); |
|---|
| | 109 | callback(PERL_LANG, perl_entities[entity], cint(ts), cint(te)); |
|---|
| 110 | 110 | } |
|---|
| 111 | 111 | |
|---|
| r95e8eb5 |
r0b4bd62 |
|
| 153 | 153 | |
|---|
| 154 | 154 | action phtml_ecallback { |
|---|
| 155 | | callback(PHTML_LANG, entity, cint(ts), cint(te)); |
|---|
| | 155 | callback(PHTML_LANG, phtml_entities[entity], cint(ts), cint(te)); |
|---|
| 156 | 156 | } |
|---|
| 157 | 157 | |
|---|
| rb74936f |
r0b4bd62 |
|
| 92 | 92 | |
|---|
| 93 | 93 | action python_ecallback { |
|---|
| 94 | | callback(PYTHON_LANG, entity, cint(ts), cint(te)); |
|---|
| | 94 | callback(PYTHON_LANG, python_entities[entity], cint(ts), cint(te)); |
|---|
| 95 | 95 | } |
|---|
| 96 | 96 | |
|---|
| r688ba8c |
r0b4bd62 |
|
| 153 | 153 | |
|---|
| 154 | 154 | action rhtml_ecallback { |
|---|
| 155 | | callback(RHTML_LANG, entity, cint(ts), cint(te)); |
|---|
| | 155 | callback(RHTML_LANG, rhtml_entities[entity], cint(ts), cint(te)); |
|---|
| 156 | 156 | } |
|---|
| 157 | 157 | |
|---|
| ra0a3233 |
r0b4bd62 |
|
| 148 | 148 | |
|---|
| 149 | 149 | action ruby_ecallback { |
|---|
| 150 | | callback(RUBY_LANG, entity, cint(ts), cint(te)); |
|---|
| | 150 | callback(RUBY_LANG, ruby_entities[entity], cint(ts), cint(te)); |
|---|
| 151 | 151 | } |
|---|
| 152 | 152 | |
|---|
| rfc2ff03 |
r0b4bd62 |
|
| 81 | 81 | |
|---|
| 82 | 82 | action shell_ecallback { |
|---|
| 83 | | callback(SHELL_LANG, entity, cint(ts), cint(te)); |
|---|
| | 83 | callback(SHELL_LANG, shell_entities[entity], cint(ts), cint(te)); |
|---|
| 84 | 84 | } |
|---|
| 85 | 85 | |
|---|
| r0f2e869 |
r0b4bd62 |
|
| 67 | 67 | |
|---|
| 68 | 68 | action smalltalk_ecallback { |
|---|
| 69 | | callback(SMALLTALK_LANG, entity, cint(ts), cint(te)); |
|---|
| | 69 | callback(SMALLTALK_LANG, smalltalk_entities[entity], cint(ts), cint(te)); |
|---|
| 70 | 70 | } |
|---|
| 71 | 71 | |
|---|
| r3ad6125 |
r0b4bd62 |
|
| 76 | 76 | |
|---|
| 77 | 77 | action tcl_ecallback { |
|---|
| 78 | | callback(TCL_LANG, entity, cint(ts), cint(te)); |
|---|
| | 78 | callback(TCL_LANG, tcl_entities[entity], cint(ts), cint(te)); |
|---|
| 79 | 79 | } |
|---|
| 80 | 80 | |
|---|
| r62ec36b |
r0b4bd62 |
|
| 57 | 57 | |
|---|
| 58 | 58 | action tex_ecallback { |
|---|
| 59 | | callback(TEX_LANG, entity, cint(ts), cint(te)); |
|---|
| | 59 | callback(TEX_LANG, tex_entities[entity], cint(ts), cint(te)); |
|---|
| 60 | 60 | } |
|---|
| 61 | 61 | |
|---|
| r6d68812 |
r0b4bd62 |
|
| 100 | 100 | |
|---|
| 101 | 101 | action xml_ecallback { |
|---|
| 102 | | callback(XML_LANG, entity, cint(ts), cint(te)); |
|---|
| | 102 | callback(XML_LANG, xml_entities[entity], cint(ts), cint(te)); |
|---|
| 103 | 103 | } |
|---|
| 104 | 104 | |
|---|
| r2d9228c |
r0b4bd62 |
|
| 100 | 100 | |
|---|
| 101 | 101 | action xmlschema_ecallback { |
|---|
| 102 | | callback(XMLSCHEMA_LANG, entity, cint(ts), cint(te)); |
|---|
| | 102 | callback(XMLSCHEMA_LANG, xmlschema_entities[entity], cint(ts), cint(te)); |
|---|
| 103 | 103 | } |
|---|
| 104 | 104 | |
|---|
| ra416cbc |
r0b4bd62 |
|
| 100 | 100 | |
|---|
| 101 | 101 | action xslt_ecallback { |
|---|
| 102 | | callback(XSLT_LANG, entity, cint(ts), cint(te)); |
|---|
| | 102 | callback(XSLT_LANG, xslt_entities[entity], cint(ts), cint(te)); |
|---|
| 103 | 103 | } |
|---|
| 104 | 104 | |
|---|