From 316f5ea69146f0971cc0e7e04c232038a9ff7cac Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Mon, 5 Nov 2018 13:54:03 +0000 Subject: [PATCH] Markup identifier regexps as for better readability git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345951 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/constants.xml | 2 +- language/functions.xml | 2 +- language/variables.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/language/constants.xml b/language/constants.xml index 2112090ee3..41aee166a2 100644 --- a/language/constants.xml +++ b/language/constants.xml @@ -16,7 +16,7 @@ valid constant name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thusly: - [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* + [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* &tip.userlandnaming; diff --git a/language/functions.xml b/language/functions.xml index 73cfff69d4..73c1a19dfe 100644 --- a/language/functions.xml +++ b/language/functions.xml @@ -36,7 +36,7 @@ function foo($arg_1, $arg_2, /* ..., */ $arg_n) valid function name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: - [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*. + [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*. &tip.userlandnaming; diff --git a/language/variables.xml b/language/variables.xml index 886e39a04d..f8d8533d3d 100644 --- a/language/variables.xml +++ b/language/variables.xml @@ -16,7 +16,7 @@ valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: - '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*' + [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*