-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Gettext lexer, samples, and spec #1405
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this has been outstanding for so long. Please let me know if you have any questions!
rule %r/^#[,:].*/, Comment::Special | ||
rule %r/^#[^,:].*/, Comment | ||
|
||
rule %r/".*?"/, Str::Double |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if a string contains "
? Do these need to be escaped? Should the rule be this:
rule %r/".*?"/, Str::Double | |
rule %r/"(?:\\\\|\\"|[^"])*"/, Str::Double |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shoorick Just checking about the answer to this question.
There are simple highlight rules for GNU Gettext
See also https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html