Skip to content

Commit 52fb129

Browse files
committed
Enable the equal sign in the file mask
In the lfs project (see https://github.com/Canop/lfs) there are a number of image files containing an equal sign resulting in the warning like: ``` .../README.md:28: warning: image file website/docs/img/c is not found in IMAGE_PATH: assuming external image. ``` whilst the line in the code reads: ``` ![screenshot](website/docs/img/c=label+default+dev.png) ``` and the mentioned image does exist (Found through Fossies)
1 parent a85850b commit 52fb129

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/commentscan.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,8 @@ ATTR ({B}+[^>\n]*)?
495495
DOCNL "\n"|"\\ilinebr"
496496
LC "\\"{B}*"\n"
497497
NW [^a-z_A-Z0-9]
498-
FILESCHAR [a-z_A-Z0-9\x80-\xFF\\:\\\/\-\+@&#]
499-
FILEECHAR [a-z_A-Z0-9\x80-\xFF\-\+@&#]
498+
FILESCHAR [a-z_A-Z0-9\x80-\xFF\\:\\\/\-\+=@&#]
499+
FILEECHAR [a-z_A-Z0-9\x80-\xFF\-\+=@&#]
500500
FILE ({FILESCHAR}*{FILEECHAR}+("."{FILESCHAR}*{FILEECHAR}+)*)|("\""[^\n\"]*"\"")
501501
ID [$a-z_A-Z\x80-\xFF][$a-z_A-Z0-9\x80-\xFF]*
502502
LABELID [a-z_A-Z\x80-\xFF][a-z_A-Z0-9\x80-\xFF\-]*

src/doctokenizer.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ ATTRIB {ATTRNAME}{WS}*("="{WS}*(("\""[^\"]*"\"")|("'"[^\']*"'")|[^ \t\r\n'"><
279279
URLCHAR [a-z_A-Z0-9\!\~\,\:\;\'\$\?\@\&\%\#\.\-\+\/\=\x80-\xFF]
280280
URLMASK ({URLCHAR}+([({]{URLCHAR}*[)}])?)+
281281
URLPROTOCOL ("http:"|"https:"|"ftp:"|"ftps:"|"sftp:"|"file:"|"news:"|"irc:"|"ircs:")
282-
FILEICHAR [a-z_A-Z0-9\\:\\\/\-\+&#@]
283-
FILEECHAR [a-z_A-Z0-9\-\+&#@]
282+
FILEICHAR [a-z_A-Z0-9\\:\\\/\-\+=&#@]
283+
FILEECHAR [a-z_A-Z0-9\-\+=&#@]
284284
FILECHARS {FILEICHAR}*{FILEECHAR}+
285285
HFILEMASK {FILEICHAR}*("."{FILEICHAR}+)+{FILECHARS}*
286286
VFILEMASK {FILECHARS}("."{FILECHARS})*

0 commit comments

Comments
 (0)