diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-05-02 21:37:33 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-05-02 21:37:33 +0000 |
commit | 62f46ff751c551aa07594f0f5ef19f80ce7b83f0 (patch) | |
tree | 5600a4dfb64c98db8e2e5b2d198691a0262ede0f /Source/SPEditorTokens.l | |
parent | 49d3909683d5067ee6b912a37e7af23ab97d057e (diff) | |
download | sequelpro-62f46ff751c551aa07594f0f5ef19f80ce7b83f0.tar.gz sequelpro-62f46ff751c551aa07594f0f5ef19f80ce7b83f0.tar.bz2 sequelpro-62f46ff751c551aa07594f0f5ef19f80ce7b83f0.zip |
• improved completion in CQ's text view
- added database names
- fixed logic for detecting if caret is inside quotes
- if caret inside backticks show only db, table, column names
• outsourced syntax highlighting into a method for further improvements
Diffstat (limited to 'Source/SPEditorTokens.l')
-rw-r--r-- | Source/SPEditorTokens.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPEditorTokens.l b/Source/SPEditorTokens.l index e366b552..dd206c7e 100644 --- a/Source/SPEditorTokens.l +++ b/Source/SPEditorTokens.l @@ -44,7 +44,7 @@ keywords (X(OR|509|A)|S(MALLINT|SL|H(OW({s}(E(NGINE(S)?|RRORS)|M(ASTER|UTEX)|BIN %% \"([^"\\]|\\(.|\n))*\"? { return SPT_DOUBLE_QUOTED_TEXT; } /* double quoted strings */ '([^'\\]|\\(.|\n))*'? { return SPT_SINGLE_QUOTED_TEXT; } /* single quoted strings */ -`[^`]*`? { return SPT_BACKTICK_QUOTED_TEXT; } /* identifier quoting */ +`[^`]*`? { return SPT_BACKTICK_QUOTED_TEXT; } /* backtick quoted string */ "/*" { BEGIN(comment); return SPT_COMMENT; } /* beginning of a c style comment */ <comment>[^*]* { return SPT_COMMENT; } /* anything except * in a c cmnt */ |