summaryrefslogtreecommitdiff
path: root/lib/coderay/token_kinds.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-04-02 03:42:12 +0000
committermurphy <murphy@rubychan.de>2010-04-02 03:42:12 +0000
commit937daf4160cdd8cadf936f7ecb5f575c522e276a (patch)
treeda15f97e0564f6dc46b40821934e3be2bb68c5f8 /lib/coderay/token_kinds.rb
parent6d82ed6176a8c3e6a80a6fead652ad659a8892db (diff)
downloadcoderay-937daf4160cdd8cadf936f7ecb5f575c522e276a.tar.gz
Python scanner highlights docstrings as comments (see #190).
Diffstat (limited to 'lib/coderay/token_kinds.rb')
-rwxr-xr-xlib/coderay/token_kinds.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/coderay/token_kinds.rb b/lib/coderay/token_kinds.rb
index f6341fb..3e63372 100755
--- a/lib/coderay/token_kinds.rb
+++ b/lib/coderay/token_kinds.rb
@@ -82,6 +82,7 @@ module CodeRay
AbbreviationForKind[:open] = AbbreviationForKind[:close] = AbbreviationForKind[:delimiter]
AbbreviationForKind[:nesting_delimiter] = AbbreviationForKind[:delimiter]
AbbreviationForKind[:escape] = AbbreviationForKind[:delimiter]
+ AbbreviationForKind[:docstring] = AbbreviationForKind[:comment]
#AbbreviationForKind.default = AbbreviationForKind[:error] or raise 'no class found for :error!'
end
end