Re: [ELPA] New package: phps-mode
Kenta USAMI <[email protected]>
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <CAJB2i6ashQMBQZ-0Ert3K69y7RFryw07A5trkCF=Gb_-hSxuUA@mail.gmail.com> |
Hi everyone, The GitHub URL linked from https://elpa.gnu.org/packages/phps-mode.html is broken; it appears the project has moved to https://forgejo.cvj.se/cjohansson/emacs-phps-mode. (I am not affiliated with the project, but the domain matches Christian Johansson's email address.) Could someone please update the GNU ELPA metadata? 2019年7月18日(木) 5:28 Christian Johansson <[email protected]>: > 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 <[email protected]>: > >> 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. > > > >