summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-09-23 13:47:01 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-09-23 13:47:01 (GMT)
commit648d871ab448b81dc714dcbdca955afd9a9bc3c3 (patch)
tree71fb16204c548cc10648cb747147d5927f2e8319 /src
parent1024ab18b435dac7ba4ab94a087bb950b3bdf2c0 (diff)
downloadDoxygen-648d871ab448b81dc714dcbdca955afd9a9bc3c3.zip
Doxygen-648d871ab448b81dc714dcbdca955afd9a9bc3c3.tar.gz
Doxygen-648d871ab448b81dc714dcbdca955afd9a9bc3c3.tar.bz2
HTML attribute name
A HTML attribute name can have e.g. a XML namespace in it and thus containing a colon (`:`) like: ``` <span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Social Icons</span> ``` but this results in ``` warning: found </span> tag without matching <span> ``` and grabled outpuzt. allowing a colon in the attribute name solves this problem
Diffstat (limited to 'src')
-rw-r--r--src/doctokenizer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 9786720..22b14a0 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -350,7 +350,7 @@ LISTITEM {BLANK}*[-]("#")?{WS}
MLISTITEM {BLANK}*[+*]{WS}
OLISTITEM {BLANK}*[1-9][0-9]*"."{BLANK}
ENDLIST {BLANK}*"."{BLANK}*\n
-ATTRNAME [a-z_A-Z\x80-\xFF][a-z_A-Z0-9\x80-\xFF\-]*
+ATTRNAME [a-z_A-Z\x80-\xFF][:a-z_A-Z0-9\x80-\xFF\-]*
ATTRIB {ATTRNAME}{WS}*("="{WS}*(("\""[^\"]*"\"")|("'"[^\']*"'")|[^ \t\r\n'"><]+))?
URLCHAR [a-z_A-Z0-9\!\~\,\:\;\'\$\?\@\&\%\#\.\-\+\/\=]
URLMASK ({URLCHAR}+([({]{URLCHAR}*[)}])?)+