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: Christian Johansson
Subject: Re: [ELPA] New package: phps-mode
Date: Wed, 17 Jul 2019 22:27:29 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

Hi again!

Thanks, I have updated the regex, labels with UTF-8 are now supported just like in PHP 7

Best Regards
Christian

On 2019-07-17 10:44, Mattias Engdegård wrote:
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]