aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-01-24 14:47:46 -0500
committerStefan Monnier2011-01-24 14:47:46 -0500
commit21bb5ce0dd56f69d661d3d386c1cd3cef12a1d36 (patch)
treecace8e3d588540bad9adbc969f77d662735241a6
parent10617634616deb3a645bb3e9f7bcd91ea900f4aa (diff)
downloademacs-21bb5ce0dd56f69d661d3d386c1cd3cef12a1d36.tar.gz
emacs-21bb5ce0dd56f69d661d3d386c1cd3cef12a1d36.zip
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Handle ?" and friends differently (e.g. don't use backrefs). Fixes: debbugs:7735
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/progmodes/ruby-mode.el11
2 files changed, 12 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e7135e57d88..0a2b34cb024 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/ruby-mode.el (ruby-syntax-propertize-function): (bug#7735)
4 Handle ?" and friends differently (e.g. don't use backrefs).
5
12011-01-24 Jay Belanger <jay.p.belanger@gmail.com> 62011-01-24 Jay Belanger <jay.p.belanger@gmail.com>
2 7
3 * calc/calc.el (calc-default-power-reference-level) 8 * calc/calc.el (calc-default-power-reference-level)
@@ -6,8 +11,8 @@
6 (math-logunits): New variable. 11 (math-logunits): New variable.
7 (math-extract-logunits, math-logcombine, calcFunc-luplus) 12 (math-extract-logunits, math-logcombine, calcFunc-luplus)
8 (calcFunc-luminus, calc-luplus, calc-luminus, math-logunit-level) 13 (calcFunc-luminus, calc-luplus, calc-luminus, math-logunit-level)
9 (calcFunc-fieldlevel, calcFunc-powerlevel, calc-level): New 14 (calcFunc-fieldlevel, calcFunc-powerlevel, calc-level):
10 functions. 15 New functions.
11 (math-find-base-units-rec): Add entry for ln(10). 16 (math-find-base-units-rec): Add entry for ln(10).
12 * calc/calc-help.el (calc-u-prefix-help): Add logarithmic help. 17 * calc/calc-help.el (calc-u-prefix-help): Add logarithmic help.
13 (calc-ul-prefix-help): New function. 18 (calc-ul-prefix-help): New function.
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 2f10a7f2a97..733af999cdb 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -1121,14 +1121,13 @@ See `add-log-current-defun-function'."
1121 (syntax-propertize-rules 1121 (syntax-propertize-rules
1122 ;; #{ }, #$hoge, #@foo are not comments 1122 ;; #{ }, #$hoge, #@foo are not comments
1123 ("\\(#\\)[{$@]" (1 ".")) 1123 ("\\(#\\)[{$@]" (1 "."))
1124 ;; the last $', $", $` in the respective string is not variable
1125 ;; the last ?', ?", ?` in the respective string is not ascii code
1126 ("\\(^\\|[\[ \t\n<+\(,=]\\)\\(['\"`]\\)\\(\\\\.\\|\\2\\|[^'\"`\n\\\\]\\)*?\\\\?[?$]\\(\\2\\)"
1127 (2 "\"")
1128 (4 "\""))
1129 ;; $' $" $` .... are variables 1124 ;; $' $" $` .... are variables
1130 ;; ?' ?" ?` are ascii codes 1125 ;; ?' ?" ?` are ascii codes
1131 ("\\(^\\|[^\\\\]\\)\\(\\\\\\\\\\)*[?$]\\([#\"'`]\\)" (3 ".")) 1126 ("\\([?$]\\)[#\"'`]"
1127 (1 (unless (save-excursion
1128 ;; Not within a string.
1129 (nth 3 (syntax-ppss (match-beginning 0))))
1130 (string-to-syntax "\\"))))
1132 ;; regexps 1131 ;; regexps
1133 ("\\(^\\|[=(,~?:;<>]\\|\\(^\\|\\s \\)\\(if\\|elsif\\|unless\\|while\\|until\\|when\\|and\\|or\\|&&\\|||\\)\\|g?sub!?\\|scan\\|split!?\\)\\s *\\(/\\)[^/\n\\\\]*\\(\\\\.[^/\n\\\\]*\\)*\\(/\\)" 1132 ("\\(^\\|[=(,~?:;<>]\\|\\(^\\|\\s \\)\\(if\\|elsif\\|unless\\|while\\|until\\|when\\|and\\|or\\|&&\\|||\\)\\|g?sub!?\\|scan\\|split!?\\)\\s *\\(/\\)[^/\n\\\\]*\\(\\\\.[^/\n\\\\]*\\)*\\(/\\)"
1134 (4 "\"/") 1133 (4 "\"/")