Skip to content

Commit

Permalink
More permissive lexing of translation entities (closes #20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinglozzer committed Jul 5, 2021
1 parent 86b390f commit cd80657
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 51 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Removed

### Fixed
- Slightly more permissive lexing of translation entities (#20)

## [1.0.0]
Initial stable release
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ SS_COMMENT_START= <%--
SS_COMMENT_END= --%>
SS_TRANSLATION_START= <%t
SS_STRING_NO_QUOTES=[^\"\'\)]+
SS_TRANSLATION_IDENTIFIER= [a-zA-Z_\\]+([a-zA-Z0-9_\\])*\.([a-zA-Z0-9_\\])+
SS_TRANSLATION_IDENTIFIER= [a-zA-Z_\\]+([a-zA-Z0-9_\\])*(\.([a-zA-Z0-9_\\])+)+

SS_TEXT= (([^<${\\]+) | (\\.) | (<[^%]) | (\$[^A-Za-z_]) | (\{[^\$]) | (\{\$[^A-Za-z_]))+

Expand Down

0 comments on commit cd80657

Please sign in to comment.