diff options
author | BenBasson <github@basson.at> | 2014-06-11 22:47:51 +0100 |
---|---|---|
committer | BenBasson <github@basson.at> | 2014-06-12 09:08:57 +0100 |
commit | e1aa98e7386609fd4c84bdcd2c3ea4b26663c8b7 (patch) | |
tree | 52edd3eeeb90ddf5db679e97fec317c452aad646 /lib | |
parent | 38e3338f2824ddc519097a7ab9d03790025f802c (diff) | |
download | coderay-e1aa98e7386609fd4c84bdcd2c3ea4b26663c8b7.tar.gz |
Allow $ in SQL object names.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/coderay/scanners/sql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/sql.rb b/lib/coderay/scanners/sql.rb index c25f6d2..7d57f77 100644 --- a/lib/coderay/scanners/sql.rb +++ b/lib/coderay/scanners/sql.rb @@ -96,7 +96,7 @@ module Scanners state = :string encoder.text_token match, :delimiter - elsif match = scan(/ @? [A-Za-z_][A-Za-z_0-9]* /x) + elsif match = scan(/ @? [A-Za-z_][A-Za-z_0-9\$]* /x) encoder.text_token match, name_expected ? :ident : (match[0] == ?@ ? :variable : IDENT_KIND[match]) name_expected = false |