Permalink
Browse files

Duplicated pattern for CDATA removed

  • Loading branch information...
1 parent 70b7619 commit e7957b2cab4aab6edff6b50c9702f359a690f2cb @arikon arikon committed Aug 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ometa-highlighter.ometajs
@@ -85,7 +85,7 @@ ometa OmetaHighlighterXml {
(~seq(q) char)*:cs
quote(q) -> { cs.unshift(qp); cs.push(qp); [`string + '.' + n, cs] },
- preproc = (fromTo('<?', '?>') | fromTo('<![CDATA[', ']]>') | fromTo('<![CDATA[', ']]>')):c
+ preproc = (fromTo('<?', '?>') | fromTo('<![CDATA[', ']]>')):c
-> ['comment.preproc', [[`punctuation, c[0]]].concat(c[1]).concat([[`punctuation, c[2]]])],
string = anyString('\'', `single)

0 comments on commit e7957b2

Please sign in to comment.