Changeset 4210
- Timestamp:
- 04/18/08 08:49:46 (3 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
RELEASE_NOTES.txt (modified) (1 diff)
-
wenv/emacs/logtalk.el (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/RELEASE_NOTES.txt
r4209 r4210 88 88 Removed some redundant regular expressions from the jEdit text editor 89 89 syntax coloring support files. 90 91 Corrected syntax coloring bugs with variables starting with underscores 92 (including anonymous variables) and with atoms containing an underscore 93 in the Emacs text editor. Thanks to Joerg Schuster for the bug report. 90 94 91 95 Updated the Logtalk grammar documentation to reflect the changes to -
trunk/wenv/emacs/logtalk.el
r3952 r4210 5 5 ;; Author: Paulo Moura 6 6 ;; Creation date: November 15, 2003 7 ;; Last modification date: December 6, 20078 ;; Version: 1. 27 ;; Last modification date: April 18, 2008 8 ;; Version: 1.3 9 9 10 10 ;; Installation: … … 28 28 ;; setup 29 29 30 (defvar logtalk-mode-version "1. 2"30 (defvar logtalk-mode-version "1.3" 31 31 "Logtalk mode version number") 32 32 … … 51 51 (let ((logtalk-mode-syntax-table (make-syntax-table))) 52 52 (modify-syntax-entry ?_ "w" logtalk-mode-syntax-table) 53 (modify-syntax-entry ?_ "_" logtalk-mode-syntax-table)54 53 (modify-syntax-entry ?/ ". 14b" logtalk-mode-syntax-table) 55 54 (modify-syntax-entry ?* ". 23b" logtalk-mode-syntax-table) … … 104 103 ("\\(:- \\)\\(alias\\|calls\\|d\\(?:iscontiguous\\|ynamic\\)\\|e\\(?:ncoding\\|xport\\)\\|in\\(?:fo\\|itialization\\)\\|m\\(?:\\(?:eta_predicat\\|od\\)e\\)\\|op\\|use\\(?:s\\|_module\\)\\|synchronized\\)\\([(]\\)" 2 'logtalk-directive-face) 105 104 ("\\(:- \\)\\(dynamic\\|synchronized\\|threaded\\)\\([\.]\\)" 2 'logtalk-directive-face) 106 ("\\ (\\(?:complement\\|extend\\|i\\(?:mp\\(?:\\(?:lemen\\|or\\)t\\)\\|nstantiate\\)\\|specialize\\)s\\)\\([(]\\)" 1 'logtalk-directive-face)105 ("\\<\\(\\(?:complement\\|extend\\|i\\(?:mp\\(?:\\(?:lemen\\|or\\)t\\)\\|nstantiate\\)\\|specialize\\)s\\)\\([(]\\)" 1 'logtalk-directive-face) 107 106 )) 108 107 … … 110 109 (setq logtalk-font-lock-built-in-methods 111 110 '( 112 ("\\ (parameter\\|se\\(?:lf\\|nder\\)\\|this\\)\\([(]\\)" 1 'logtalk-built-in-method-face)113 ("\\ (current_predicate\\|predicate_property\\)\\([(]\\)" 1 'logtalk-built-in-method-face)114 ("\\ (a\\(?:bolish\\|ssert[az]\\)\\|clause\\|retract\\(?:all\\)?\\)\\([(]\\)" 1 'logtalk-built-in-method-face)115 ("\\ (bagof\\|f\\(?:\\(?:ind\\|or\\)all\\)\\|setof\\)\\([(]\\)" 1 'logtalk-built-in-method-face)116 ("\\ (after\\|before\\)\\([(]\\)" 1 'logtalk-built-in-method-face)117 ("\\ (phrase\\|expand_term\\|\\(?:goal\\|term\\)_expansion\\)\\([(]\\)" 1 'logtalk-built-in-method-face)111 ("\\<\\(parameter\\|se\\(?:lf\\|nder\\)\\|this\\)\\([(]\\)" 1 'logtalk-built-in-method-face) 112 ("\\<\\(current_predicate\\|predicate_property\\)\\([(]\\)" 1 'logtalk-built-in-method-face) 113 ("\\<\\(a\\(?:bolish\\|ssert[az]\\)\\|clause\\|retract\\(?:all\\)?\\)\\([(]\\)" 1 'logtalk-built-in-method-face) 114 ("\\<\\(bagof\\|f\\(?:\\(?:ind\\|or\\)all\\)\\|setof\\)\\([(]\\)" 1 'logtalk-built-in-method-face) 115 ("\\<\\(after\\|before\\)\\([(]\\)" 1 'logtalk-built-in-method-face) 116 ("\\<\\(phrase\\|expand_term\\|\\(?:goal\\|term\\)_expansion\\)\\([(]\\)" 1 'logtalk-built-in-method-face) 118 117 )) 119 118 … … 121 120 (setq logtalk-font-lock-built-in-predicates 122 121 '( 123 ("\\ (c\\(?:urrent\\|reate\\)_\\(?:category\\|object\\|protocol\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)124 ("\\ (abolish_\\(?:category\\|object\\|protocol\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)125 ("\\ (\\(?:category\\|object\\|protocol\\)_property\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)126 ("\\ (complements_object\\|extends_\\(?:object\\|protocol\\|category\\)\\|i\\(?:mp\\(?:lements_protocol\\|orts_category\\)\\|nstantiates_class\\)\\|specializes_class\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)127 ("\\ (\\(?:abolish\\|define\\)_events\\|current_event\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)128 ("\\ (\\(?:curren\\|se\\)t_logtalk_flag\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)129 ("\\ (logtalk_\\(?:compile\\|load\\|version\\|library_path\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)130 ("\\ (forall\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)131 ("\\ (retractall\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)122 ("\\<\\(c\\(?:urrent\\|reate\\)_\\(?:category\\|object\\|protocol\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 123 ("\\<\\(abolish_\\(?:category\\|object\\|protocol\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 124 ("\\<\\(\\(?:category\\|object\\|protocol\\)_property\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 125 ("\\<\\(complements_object\\|extends_\\(?:object\\|protocol\\|category\\)\\|i\\(?:mp\\(?:lements_protocol\\|orts_category\\)\\|nstantiates_class\\)\\|specializes_class\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 126 ("\\<\\(\\(?:abolish\\|define\\)_events\\|current_event\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 127 ("\\<\\(\\(?:curren\\|se\\)t_logtalk_flag\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 128 ("\\<\\(logtalk_\\(?:compile\\|load\\|version\\|library_path\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 129 ("\\<\\(forall\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 130 ("\\<\\(retractall\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 132 131 ;; 133 132 ;; control constructs: 134 133 ;; 135 ("\\(ca\\(?:ll\\|tch\\)\\|throw\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 136 ("\\(fail\\|true\\|!\\|->\\|;\\)" 0 'logtalk-built-in-predicate-face) 134 ("\\<\\(ca\\(?:ll\\|tch\\)\\|throw\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 135 ("\\<\\(fail\\|true\\)\\>" 0 'logtalk-built-in-predicate-face) 136 ("\\(!\\|->\\|;\\)" 0 'logtalk-built-in-predicate-face) 137 137 ;; 138 138 ;; multi-threading: 139 139 ;; 140 ("\\ (threaded\\(_\\(?:call\\|once\\|ignore\\|exit\\|peek\\|wait\\|notify\\)\\)?\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)140 ("\\<\\(threaded\\(_\\(?:call\\|once\\|ignore\\|exit\\|peek\\|wait\\|notify\\)\\)?\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 141 141 ;; 142 142 ;; logic and control: 143 143 ;; 144 ("\\ (once\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)145 ("\\\\\\+\\| repeat" 0 'logtalk-built-in-predicate-face)144 ("\\<\\(once\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 145 ("\\\\\\+\\|\\<repeat\\>" 0 'logtalk-built-in-predicate-face) 146 146 ;; 147 147 ;; term testing: 148 148 ;; 149 ("\\ (atom\\(?:ic\\)?\\|compound\\|float\\|\\(?:intege\\|n\\(?:onva\\|umbe\\)\\|va\\)r\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)149 ("\\<\\(atom\\(?:ic\\)?\\|compound\\|float\\|\\(?:intege\\|n\\(?:onva\\|umbe\\)\\|va\\)r\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 150 150 ;; 151 151 ;; term comparison: … … 155 155 ;; term creation and decomposition: 156 156 ;; 157 ("\\ (arg\\|copy_term\\|functor\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)157 ("\\<\\(arg\\|copy_term\\|functor\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 158 158 ("=\\.\\." 0 'logtalk-built-in-predicate-face) 159 159 ;; 160 160 ;; arithemtic evaluation: 161 161 ;; 162 ("\\< \\is\\>" 0 'logtalk-built-in-predicate-face)162 ("\\<is\\>" 0 'logtalk-built-in-predicate-face) 163 163 ;; 164 164 ;; arithemtic comparison: … … 175 175 ;; evaluable functors: 176 176 ;; 177 ("\\ (abs\\|ceiling\\|flo\\(?:at\\(?:_\\(?:\\(?:fractional\\|integer\\)_part\\)\\)?\\|or\\)\\|mod\\|r\\(?:em\\|ound\\)\\|sign\\|truncate\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)177 ("\\<\\(abs\\|ceiling\\|flo\\(?:at\\(?:_\\(?:\\(?:fractional\\|integer\\)_part\\)\\)?\\|or\\)\\|mod\\|r\\(?:em\\|ound\\)\\|sign\\|truncate\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 178 178 ("//\\|[*/]" 0 'logtalk-built-in-predicate-face) 179 179 ("\\([^eE]\\)\\([+]\\)" 2 'logtalk-built-in-predicate-face) … … 183 183 ;; other arithemtic functors: 184 184 ;; 185 ("\\ (atan\\|cos\\|exp\\|log\\|s\\(?:in\\|qrt\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)185 ("\\<\\(atan\\|cos\\|exp\\|log\\|s\\(?:in\\|qrt\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 186 186 ("\\*\\*" 1 'logtalk-built-in-predicate-face) 187 187 ;; 188 188 ;; stream selection and control: 189 189 ;; 190 ("\\ (at_end_of_stream\\|c\\(?:lose\\|urrent_\\(?:\\(?:in\\|out\\)put\\)\\)\\|flush_output\\|open\\|s\\(?:et_\\(?:input\\|output\\|stream_position\\)\\|tream_property\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)190 ("\\<\\(at_end_of_stream\\|c\\(?:lose\\|urrent_\\(?:\\(?:in\\|out\\)put\\)\\)\\|flush_output\\|open\\|s\\(?:et_\\(?:input\\|output\\|stream_position\\)\\|tream_property\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 191 191 ("\\<\\(at_end_of_stream\\|flush_output\\)\\>" 0 'logtalk-built-in-predicate-face) 192 192 ;; 193 193 ;; character input/output: 194 194 ;; 195 ("\\ (get_c\\(?:har\\|ode\\)\\|nl\\|p\\(?:eek_c\\(?:har\\|ode\\)\\|ut_c\\(?:har\\|ode\\)\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)195 ("\\<\\(get_c\\(?:har\\|ode\\)\\|nl\\|p\\(?:eek_c\\(?:har\\|ode\\)\\|ut_c\\(?:har\\|ode\\)\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 196 196 ("\\<nl\\>" 0 'logtalk-built-in-predicate-face) 197 197 ;; 198 198 ;; byte input/output: 199 199 ;; 200 ("\\ (\\(?:get\\|p\\(?:eek\\|ut\\)\\)_byte\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)200 ("\\<\\(\\(?:get\\|p\\(?:eek\\|ut\\)\\)_byte\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 201 201 ;; 202 202 ;; term input/output: 203 203 ;; 204 ("\\ (c\\(?:har_conversion\\|urrent_\\(?:char_conversion\\|op\\)\\)\\|op\\|read\\(?:_term\\)?\\|write\\(?:_\\(?:canonical\\|term\\)\\|q\\)?\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)204 ("\\<\\(c\\(?:har_conversion\\|urrent_\\(?:char_conversion\\|op\\)\\)\\|op\\|read\\(?:_term\\)?\\|write\\(?:_\\(?:canonical\\|term\\)\\|q\\)?\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 205 205 ;; 206 206 ;; implementation defined hooks functions: 207 207 ;; 208 ("\\ (\\(?:curren\\|se\\)t_prolog_flag\\|halt\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)208 ("\\<\\(\\(?:curren\\|se\\)t_prolog_flag\\|halt\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 209 209 ("\\<halt\\>" 0 'logtalk-built-in-predicate-face) 210 210 ;; 211 211 ;; atomic term processing: 212 212 ;; 213 ("\\ (atom_\\(?:c\\(?:hars\\|o\\(?:des\\|ncat\\)\\)\\|length\\)\\|char_code\\|number_c\\(?:\\(?:har\\|ode\\)s\\)\\|sub_atom\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)213 ("\\<\\(atom_\\(?:c\\(?:hars\\|o\\(?:des\\|ncat\\)\\)\\|length\\)\\|char_code\\|number_c\\(?:\\(?:har\\|ode\\)s\\)\\|sub_atom\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face) 214 214 ;; 215 215 ;; bitwise functors:
