[geany/geany] 77c45a: PHP: support non-ASCII characters in identifiers

Colomban Wendling git-noreply at xxxxx
Wed Jul 3 17:42:25 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 15 Apr 2013 17:17:57 UTC
Commit:      77c45aa82b6e13e728887122beb7f1e1e272c700
             https://github.com/geany/geany/commit/77c45aa82b6e13e728887122beb7f1e1e272c700

Log Message:
-----------
PHP: support non-ASCII characters in identifiers

http://www.php.net/manual/en/language.variables.basics.php


Modified Paths:
--------------
    tagmanager/ctags/php.c

Modified: tagmanager/ctags/php.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -492,7 +492,7 @@ static void addToScope (tokenInfo *const token, const vString *const extra)
 
 static boolean isIdentChar (const int c)
 {
-	return (isalnum (c) || c == '_');
+	return (isalnum (c) || c == '_' || c & 0x80);
 }
 
 static int skipToCharacter (const int c)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list