aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov2016-03-10 04:13:25 +0200
committerDmitry Gutov2016-03-10 14:36:08 +0200
commit28532a91a96f30ab468d06b410bd199fb08dd5e9 (patch)
tree27d669312c66fd49bf25c9f2081869da4d8de4e7 /test
parenta7d6f39d8a291ba78b7605f0e841e2751dfe5e11 (diff)
downloademacs-28532a91a96f30ab468d06b410bd199fb08dd5e9.tar.gz
emacs-28532a91a96f30ab468d06b410bd199fb08dd5e9.zip
Propertize character literals and special global variables differently
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Propertize character literals and global variables with special names with prefix and symbol syntax classes, for SMIE to tokenize them together automatically. (ruby-font-lock-keywords): Fix an old regression in highlighting character literals.
Diffstat (limited to 'test')
-rw-r--r--test/indent/ruby.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 3fdb68064be..522c3bd5465 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -174,6 +174,9 @@ qux :+,
174 bar, 174 bar,
175 :a 175 :a
176 176
177b = $:
178c = ??
179
177# Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html 180# Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html
178d = 4 + 5 + # no '\' needed 181d = 4 + 5 + # no '\' needed
179 6 + 7 182 6 + 7