Page 1 of 1

PHP lexer

Posted: 01.03.2020 15:36
by ANewUser
https://i.imgur.com/snpSMJB.png
Maybe different style for constants. The static is already recognized.

Code: Select all

$this self parent

Code: Select all

$GLOBALS
$_SERVER
$_GET
$_POST
$_FILES
$_REQUEST
$_SESSION
$_ENV
$_COOKIE
$php_errormsg
$HTTP_RAW_POST_DATA
$http_response_header
$argc
$argv

Code: Select all

PHP_OS_FAMILY
PHP_FLOAT_DIG
PHP_FLOAT_EPSILON
PHP_FLOAT_MIN
PHP_FLOAT_MAX
PHP_FD_SETSIZE
E_RECOVERABLE_ERROR
PHP_WINDOWS_EVENT_CTRL_C
PHP_WINDOWS_EVENT_CTRL_BREAK
Thank you!

Posted: 01.03.2020 16:06
by Alexey
Agree, made them all colored like constants. lexer PHP_.lcf updated at
https://github.com/Alexey-T/CudaText/tr ... ata/lexlib

Posted: 01.03.2020 16:21
by Alexey
Updated PHP_ lexer again, made separate style for 'modifiers'
abstract
final
private
protected
public
static

and fixed style for self/parent.