Created
June 22, 2011 12:28
-
-
Save mechairoi/1039965 to your computer and use it in GitHub Desktop.
exuberant ctags patch mysql modoki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sql.c b/sql.c | |
index efe7e5d..b7e21f2 100644 | |
--- a/sql.c | |
+++ b/sql.c | |
@@ -319,13 +319,13 @@ static boolean isIdentChar1 (const int c) | |
* identifier, so we are removing some restrictions. | |
*/ | |
return (boolean) | |
- (isalpha (c) || c == '@' || c == '_' ); | |
+ (isalpha (c) || c == '@' || c == '_' || c == '`' ); | |
} | |
static boolean isIdentChar (const int c) | |
{ | |
return (boolean) | |
- (isalpha (c) || isdigit (c) || c == '$' || | |
+ (isalpha (c) || isdigit (c) || c == '$' || c == '`' || | |
c == '@' || c == '_' || c == '#'); | |
} | |
@@ -502,7 +502,8 @@ static void parseIdentifier (vString *const string, const int firstChar) | |
Assert (isIdentChar1 (c)); | |
do | |
{ | |
- vStringPut (string, c); | |
+ if(c != '`') | |
+ vStringPut (string, c); | |
c = fileGetc (); | |
} while (isIdentChar (c)); | |
vStringTerminate (string); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment