sunshengfei / google-code-prettify

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

XML element name does not support periods #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Prettify an XML sample that has an element name using a period. For example:
<com.example.FooBar>

The element coloring ends at the period and the rest is considered an
attribute string. I've fixed this for myself with this:

[PR_TAG,          /^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],

Notice the added period in [\w.:-]

Sorry, I'm too lazy to submit a patch. :)

Original issue reported on code.google.com by sm...@google.com on 3 Dec 2009 at 7:04

GoogleCodeExporter commented 8 years ago
Thanks for the fix.  Something this small doesn't really rate a patch :)

Applied at revision 93.  Please see http://google-code-
prettify.googlecode.com/svn/trunk/tests/prettify_test.html#xml

Original comment by mikesamuel@gmail.com on 3 Dec 2009 at 8:00