[Top][All Lists]

[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 11:36:18 +0200

Ah I missed that, the original re2c regex is

(from https://github.com/php/php-src/blob/master/Zend/zend_language_scanner.l#L1252)

But I’m not sure about the equivalent in emacs-lisp but I know PHP does not fully support UTF-8 yet.

Is the equivalent

17 juli 2019 kl. 10:44 skrev Mattias Engdegård <address@hidden>:

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


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


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

reply via email to

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