emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ELPA] New package: phps-mode


From: Mattias Engdegård
Subject: Re: [ELPA] New package: phps-mode
Date: Wed, 17 Jul 2019 10:44:50 +0200

17 juli 2019 kl. 07.43 skrev Christian Johansson <address@hidden>:
> 
> Thanks for your review, I should have fixed all those items now and pushed 
> them to ELPA

>(defvar phps-mode-lexer-LABEL
>  "[a-zA-Z_\u0080-\u00FF][a-zA-Z0-9_\x80-\xff]*"

Unfinished?

It looks like PHP accepts any Unicode character above and including U+0080 in 
labels implicitly, by including 80-ff at the byte level and the implicit fact 
that most PHP code is in UTF-8. So your regexp would probably be something like

 "[A-Za-z_[:nonascii:]][0-9A-Za-z_[:nonascii:]]*"

You could always try and see if your code correctly treats $γνῶσις, say.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]