@@ -788,24 +788,14 @@ An end of a defun is found by moving forward from the beginning of one."
788
788
'(
789
789
; ; #{ }, #$hoge, #@foo are not comments
790
790
(" \\ (#\\ )[{$@]" 1 (1 . nil ))
791
- ; ; the last $' in the string ,'...$' is not variable
792
- ; ; the last ?' in the string ,'...?' is not ascii code
793
- (" \\ (^\\ |[[ \t\n <+(,=]\\ )\\ ('\\ )[^'\n \\\\ ]*\\ (\\\\ .[^'\n \\\\ ]*\\ )*[?$]\\ ('\\ )"
794
- (2 (7 . nil ))
795
- (4 (7 . nil )))
796
- ; ; the last $` in the string ,`...$` is not variable
797
- ; ; the last ?` in the string ,`...?` is not ascii code
798
- (" \\ (^\\ |[[ \t\n <+(,=]\\ )\\ (`\\ )[^`\n \\\\ ]*\\ (\\\\ .[^`\n \\\\ ]*\\ )*[?$]\\ (`\\ )"
799
- (2 (7 . nil ))
800
- (4 (7 . nil )))
801
- ; ; the last $" in the string ,"...$" is not variable
802
- ; ; the last ?" in the string ,"...?" is not ascii code
803
- (" \\ (^\\ |[[ \t\n <+(,=]\\ )\\ (\" \\ )[^\"\n \\\\ ]*\\ (\\\\ .[^\"\n \\\\ ]*\\ )*[?$]\\ (\" \\ )"
791
+ ; ; the last $', $", $` in the respective string is not variable
792
+ ; ; the last ?', ?", ?` in the respective string is not ascii code
793
+ (" \\ (^\\ |[\[ \t\n <+\( ,=]\\ )\\ (['\" `]\\ )\\ (\\\\ .\\ |\\ 2\\ |[^'\" `\n \\\\ ]\\ )*\\\\ ?[?$]\\ (\\ 2\\ )"
804
794
(2 (7 . nil ))
805
795
(4 (7 . nil )))
806
796
; ; $' $" $` .... are variables
807
797
; ; ?' ?" ?` are ascii codes
808
- (" [ ?$][#\" '`]" 0 (1 . nil ))
798
+ (" \\ (^ \\ |[^ \\\\ ] \\ ) \\ ( \\\\\\\\\\ )*[ ?$]\\ ( [#\" '`]\\ ) " 3 (1 . nil ))
809
799
; ; regexps
810
800
(" \\ (^\\ |[=(,~?:;]\\ |\\ (^\\ |\\ s \\ )\\ (if\\ |elsif\\ |unless\\ |while\\ |until\\ |when\\ |and\\ |or\\ |&&\\ |||\\ )\\ |g?sub!?\\ |scan\\ |split!?\\ )\\ s *\\ (/\\ )[^/\n \\\\ ]*\\ (\\\\ .[^/\n \\\\ ]*\\ )*\\ (/\\ )"
811
801
(4 (7 . ?/ ))
@@ -874,7 +864,7 @@ An end of a defun is found by moving forward from the beginning of one."
874
864
1 font-lock-function-name-face )
875
865
; ; keywords
876
866
(cons (concat
877
- " \\ (^\\ |[^_:.@$]\\ |\\ .\\ .\\ )\\ b\\ ("
867
+ " \\ (^\\ |[^_:.@$]\\ |\\ .\\ .\\ )\\ b\\ (defined \\ ? \\ | \\ ( "
878
868
(mapconcat
879
869
'identity
880
870
'(" alias"
@@ -914,7 +904,7 @@ An end of a defun is found by moving forward from the beginning of one."
914
904
" yield"
915
905
)
916
906
" \\ |" )
917
- " \\ )\\ >" )
907
+ " \\ )\\ >\\ ) " )
918
908
2 )
919
909
; ; variables
920
910
'(" \\ (^\\ |[^_:.@$]\\ |\\ .\\ .\\ )\\ b\\ (nil\\ |self\\ |true\\ |false\\ )\\ >"
0 commit comments