Skip to content

Commit 8941b74

Browse files
committed
use \uFFFF as upper range for PHP identifiers
fixes #4734
1 parent 7da05db commit 8941b74

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

opengrok-indexer/src/main/jflex/analysis/php/PhpSymbolTokenizer.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ import org.opengrok.indexer.analysis.JFlexSymbolMatcher;
7272
}
7373
%}
7474

75-
Identifier = [a-zA-Z_\u007F-\u10FFFF] [a-zA-Z0-9_\u007F-\u10FFFF]*
75+
Identifier = [a-zA-Z_\u007F-\uFFFF] [a-zA-Z0-9_\u007F-\uFFFF]*
7676

7777
File = [a-zA-Z]{FNameChar}* "." ("php"|"php3"|"php4"|"phps"|"phtml"|"inc"|"diff"|"patch")
7878

opengrok-indexer/src/main/jflex/analysis/php/PhpXref.lex

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ import org.opengrok.indexer.web.HtmlConsts;
136136
}
137137
%}
138138

139-
Identifier = [a-zA-Z_\u007F-\u10FFFF] [a-zA-Z0-9_\u007F-\u10FFFF]*
139+
Identifier = [a-zA-Z_\u007F-\uFFFF] [a-zA-Z0-9_\u007F-\uFFFF]*
140140

141141
File = [a-zA-Z]{FNameChar}* "." ("php"|"php3"|"php4"|"phps"|"phtml"|"inc"|"diff"|"patch")
142142

@@ -172,7 +172,7 @@ DocParamWithName = "uses"
172172
DocInlineTags = "internal" | "inheritDoc" | "link" | "example"
173173
//method needs special treatment
174174

175-
HtmlNameStart = [a-zA-Z_\u00C0-\u10FFFFFF]
175+
HtmlNameStart = [a-zA-Z_\u00C0-\uFFFF]
176176
HtmlName = {HtmlNameStart} ({HtmlNameStart} | [\-.0-9\u00B7])*
177177

178178
%state TAG_NAME AFTER_TAG_NAME ATTRIBUTE_NOQUOTE ATTRIBUTE_SINGLE ATTRIBUTE_DOUBLE HTMLCOMMENT

0 commit comments

Comments
 (0)