VISTALL / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

XML Syntax color broken when element has `-' #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The screenshot displays the problem.

Original issue reported on code.google.com by subwiz on 6 Aug 2008 at 12:53

Attachments:

GoogleCodeExporter commented 9 years ago
This should be a simple fix to xml.jflex file.  However due to technical 
reasons, I
will not be able to setup an environment until at least a week.  Will be great 
if you
can try the fix, rebuild and test:
in the xml fle file, at lines 60, and 61, replace the existing with:
TagStart = "<" {LetterDigit}+ ("-" | {LetterDigit} )*
TagEnd = ("</" {LetterDigit}+ ("-" | {LetterDigit} )* ">") | "/>" | ">"
I did not verify the syntax, so let me know if it does not work.

Original comment by ayman.al...@gmail.com on 7 Aug 2008 at 7:25

GoogleCodeExporter commented 9 years ago
Thanks for the hint. I have made the following change:

TagStart = "<" {LetterDigit}+ (":" | "-" | {LetterDigit} )*
TagEnd = ("</" {LetterDigit}+ (":" | "-" | {LetterDigit} )* ">") | "/>" | ">"

This adds support for XML namespace also.

Rev.14 has the fix.

Original comment by subwiz on 7 Aug 2008 at 8:14