Skip to content

Commit

Permalink
use \uFFFF as upper range for PHP identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Feb 26, 2025
1 parent ae3f8b5 commit c9aaf57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import org.opengrok.indexer.analysis.JFlexSymbolMatcher;
}
%}

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

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

Expand Down
4 changes: 2 additions & 2 deletions opengrok-indexer/src/main/jflex/analysis/php/PhpXref.lex
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ import org.opengrok.indexer.web.HtmlConsts;
}
%}

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

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

Expand Down Expand Up @@ -172,7 +172,7 @@ DocParamWithName = "uses"
DocInlineTags = "internal" | "inheritDoc" | "link" | "example"
//method needs special treatment

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

%state TAG_NAME AFTER_TAG_NAME ATTRIBUTE_NOQUOTE ATTRIBUTE_SINGLE ATTRIBUTE_DOUBLE HTMLCOMMENT
Expand Down

0 comments on commit c9aaf57

Please # to comment.