Changeset 4582 for trunk/wenv
- Timestamp:
- 11/07/08 19:56:33 (2 months ago)
- Location:
- trunk/wenv
- Files:
-
- 18 modified
-
emacs/logtalk.el (modified) (3 diffs)
-
geshi/logtalk.php (modified) (4 diffs)
-
gtksourceview2/logtalk.lang (modified) (2 diffs)
-
highlight/lgt.lang (modified) (2 diffs)
-
jedit/logtalk.xml (modified) (2 diffs)
-
kate/logtalk.xml (modified) (2 diffs)
-
nedit/logtalk.pats (modified) (2 diffs)
-
npp/logtalk.api (modified) (2 diffs)
-
pygments/logtalk.py (modified) (1 diff)
-
smultron/logtalk.plist (modified) (1 diff)
-
source-highlight/logtalk.lang (modified) (2 diffs)
-
subethaedit/logtalk.plist (modified) (1 diff)
-
subethaedit2/Logtalk.mode/Contents/Resources/AutocompleteAdditions.txt (modified) (1 diff)
-
subethaedit2/Logtalk.mode/Contents/Resources/SyntaxDefinition.xml (modified) (2 diffs)
-
textmate/Logtalk.tmbundle/Preferences/Completions.plist (modified) (1 diff)
-
textmate/Logtalk.tmbundle/Syntaxes/Logtalk.plist (modified) (2 diffs)
-
vim/completion/logtalk.dict (modified) (1 diff)
-
vim/syntax/logtalk.vim (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wenv/emacs/logtalk.el
r4252 r4582 5 5 ;; Author: Paulo Moura <pmoura@logtalk.org> 6 6 ;; Creation date: November 15, 2003 7 ;; Last modification date: May 5, 20088 ;; Version: 1. 417 ;; Last modification date: November 8, 2008 8 ;; Version: 1.5 9 9 10 10 ;; Installation: … … 28 28 ;; setup 29 29 30 (defvar logtalk-mode-version "1. 41"30 (defvar logtalk-mode-version "1.5" 31 31 "Logtalk mode version number") 32 32 … … 98 98 (setq logtalk-font-lock-directives 99 99 '( 100 ("\\(:- \\)\\(\\(e nd_\\(?:category\\|object\\|protocol\\)\\)\\)\\([\.]\\)" 2 'logtalk-directive-face)100 ("\\(:- \\)\\(\\(e\\(?:lse\\|nd\\(?:if\\|_\\(?:category\\|object\\|protocol\\)\\)\\)\\)\\)\\([\.]\\)" 2 'logtalk-directive-face) 101 101 ("\\(:- \\)\\(category\\|object\\|protocol\\|module\\)\\([(]\\)" 2 'logtalk-directive-face) 102 102 ("\\(:- \\)\\(p\\(?:r\\(?:ivate\\|otected\\)\\|ublic\\)\\)\\([(]\\)" 2 'logtalk-directive-face) 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)103 ("\\(:- \\)\\(alias\\|calls\\|d\\(?:iscontiguous\\|ynamic\\)\\|e\\(?:lif\\|ncoding\\|xport\\)\\|i\\(?:f\\|n\\(?:fo\\|itialization\\)\\)\\|m\\(?:\\(?:eta_predicat\\|od\\)e\\)\\|op\\|use\\(?:s\\|_module\\)\\|synchronized\\)\\([(]\\)" 2 'logtalk-directive-face) 104 104 ("\\(:- \\)\\(dynamic\\|synchronized\\|threaded\\)\\([\.]\\)" 2 'logtalk-directive-face) 105 105 ("\\<\\(\\(?:complement\\|extend\\|i\\(?:mp\\(?:\\(?:lemen\\|or\\)t\\)\\|nstantiate\\)\\|specialize\\)s\\)\\([(]\\)" 1 'logtalk-directive-face) -
trunk/wenv/geshi/logtalk.php
r4404 r4582 5 5 * ----------- 6 6 * 7 * Author : Clara Dimene <c_dimene@hotmail.com>8 * 9 * Copyright: (c) 2008 Clara Dimene 7 * Authors: Clara Dimene <c_dimene@hotmail.com>, Paulo Moura <pmoura@logtalk.org> 8 * 9 * Copyright: (c) 2008 Clara Dimene, Paulo Moura 10 10 * 11 11 * Logtalk language file for GeSHi. … … 13 13 * 14 14 * Based on GeSHi release 1.0.7.21 15 * Last Change: July 18, 200815 * Last Change: November 8, 2008 16 16 * 17 17 ************************************************************************************* … … 440 440 //Other directives 441 441 36 => array( 442 GESHI_SEARCH => '(\s*:-\s)(mode|alias|(e( ncoding|xport))|synchronized|alias|initialization|info|module|d(ynamic|iscontiguous)|op|(m(eta_predicate|ultifile))|calls|(use(s|_module)))(?=[(])',442 GESHI_SEARCH => '(\s*:-\s)(mode|alias|(e(lif|ncoding|xport))|synchronized|alias|i(f|n(itialization|fo))|module|d(ynamic|iscontiguous)|op|(m(eta_predicate|ultifile))|calls|(use(s|_module)))(?=[(])', 443 443 GESHI_REPLACE => '\\2', 444 444 GESHI_MODIFIERS => '', … … 449 449 //Entity directives 450 450 37 => array( 451 GESHI_SEARCH => '(\s*:-\s)(e nd_(object|protocol|category)|threaded|synchronized|dynamic)(?=[.])',451 GESHI_SEARCH => '(\s*:-\s)(e(lse|nd(if|_(object|protocol|category)))|threaded|synchronized|dynamic)(?=[.])', 452 452 GESHI_REPLACE => '\\2', 453 453 GESHI_MODIFIERS => '', -
trunk/wenv/gtksourceview2/logtalk.lang
r4260 r4582 3 3 4 4 Author: Paulo Moura <pmoura@logtalk.org> 5 Copyright (C) 2007 Paulo Moura <pmoura@logtalk.org>5 Copyright (C) 2007-2008 Paulo Moura <pmoura@logtalk.org> 6 6 7 7 This library is free software; you can redistribute it and/or … … 97 97 <keyword>(i(mp(orts|lements)|nstantiates))(?=[(])</keyword> 98 98 <keyword>(specializes)(?=[(])</keyword> 99 </context> 100 101 <context id="conditional-compilation-directives" style-ref="directive"> 102 <prefix>^\s*:-\s</prefix> 103 <keyword>(e(lse|ndif))(?=[.])</keyword> 104 <keyword>((el)?if)(?=[(])</keyword> 99 105 </context> 100 106 -
trunk/wenv/highlight/lgt.lang
r4253 r4582 5 5 # Author: Paulo Moura 6 6 # Mail: pmoura@logtalk.org 7 # Date: 0 5.05.088 # Version: 1. 017 # Date: 08.11.08 8 # Version: 1.1 9 9 # ------------------------------------------ 10 10 # This file is a part of highlight, a free source code converter released under the GPL. … … 17 17 # variables 18 18 $KEYWORDS(kwb)=regex((?<!0')[A-Z_]\w*) 19 20 # conditional compilation directives 21 $KEYWORDS(kwa)=regex(^\s*:-\s((el)?if)(?=[(]), 1) 22 $KEYWORDS(kwa)=regex(^\s*:-\s(e(lse|ndif))(?=\.), 1) 19 23 20 24 # encapsulation directives -
trunk/wenv/jedit/logtalk.xml
r4244 r4582 6 6 7 7 written by Paulo Moura 8 version 1. 58 version 1.6 9 9 created on 5 May 2002 10 last revised 30 April200810 last revised 8 November 2008 11 11 12 12 To install, copy this file to the "modes" subdirectory in jEdit … … 44 44 <!-- Predicate scope directives --> 45 45 <SEQ_REGEXP AT_WORD_START="TRUE" TYPE="KEYWORD1">^\s*:-\sp(ublic|r(otected|ivate))(?=[(])</SEQ_REGEXP> 46 <!-- Conditional compilation directives --> 47 <SEQ_REGEXP AT_WORD_START="TRUE" TYPE="KEYWORD1">^\s*:-\s(el)?if(?=[(])</SEQ_REGEXP> 48 <SEQ_REGEXP AT_WORD_START="TRUE" TYPE="KEYWORD1">^\s*:-\se(lse|ndif)(?=[.])</SEQ_REGEXP> 46 49 <!-- Other directives --> 47 50 <SEQ_REGEXP AT_WORD_START="TRUE" TYPE="KEYWORD1">^\s*:-\se(ncoding|xport)(?=[(])</SEQ_REGEXP> -
trunk/wenv/kate/logtalk.xml
r4246 r4582 2 2 <!DOCTYPE language SYSTEM "language.dtd"> 3 3 4 <language name="Logtalk" version="2. 1" kateversion="2.4" section="Sources" extensions="*.lgt;*.config" mimetype="text/x-logtalk" author="Paulo Moura (pmoura@logtalk.org)" license="Artistic License 2.0">4 <language name="Logtalk" version="2.2" kateversion="2.4" section="Sources" extensions="*.lgt;*.config" mimetype="text/x-logtalk" author="Paulo Moura (pmoura@logtalk.org)" license="Artistic License 2.0"> 5 5 6 6 <highlighting> … … 151 151 152 152 <context name = "directive" attribute = "Directive" lineEndContext = "#stay" > 153 <!-- Conditional compilation directives --> 154 <RegExpr String = "\b(el)?if(?=[(])" attribute = "Directive" context = "entityrelations" beginRegion = "Entity"/> 155 <RegExpr String = "\be(lse|ndif)[.]" attribute = "Directive" context = "#pop" /> 153 156 <!-- Entity directives --> 154 157 <RegExpr String = "\b(category|object|protocol)(?=[(])" attribute = "Directive" context = "entityrelations" beginRegion = "Entity"/> -
trunk/wenv/nedit/logtalk.pats
r4258 r4582 3 3 ! Author: Paulo Moura (pmoura at logtalk.org) 4 4 ! 5 ! Last changed in: May8, 20085 ! Last changed in: November 8, 2008 6 6 ! 7 7 ! … … 26 26 Closing Entity directives:"(?<=:\\-\\s)(end_object|end_protocol|end_category)(?=[.])":::Preprocessor::\n\ 27 27 Entity relations:"<(complements|instantiates|specializes|extends|imports|implements)(?=[(])":::Preprocessor::\n\ 28 Directives:"(?<=:\\-\\s)(alias|synchronized|e ncoding|export|initialization|info|mode|dynamic|discontiguous|public|protected|private|meta_predicate|multifile|op|calls|uses|use_module)(?=[(])":::Preprocessor::\n\29 Directives:"(?<=:\\-\\s)( dynamic|synchronized|threaded)>":::Preprocessor::\n\28 Directives:"(?<=:\\-\\s)(alias|synchronized|elif|encoding|export|if|initialization|info|mode|dynamic|discontiguous|public|protected|private|meta_predicate|multifile|op|calls|uses|use_module)(?=[(])":::Preprocessor::\n\ 29 Directives:"(?<=:\\-\\s)(else|endif|dynamic|synchronized|threaded)>":::Preprocessor::\n\ 30 30 Clause operators:":\\-|\\.|,":::Keyword::\n\ 31 31 Term testing:"(?<![+?@-])(var|atom|integer|float|atomic|compound|nonvar|number)(?=[(])":::Subroutine::\n\ -
trunk/wenv/npp/logtalk.api
r4233 r4582 52 52 discontiguous 53 53 dynamic 54 elif 55 else 54 56 encoding 57 endif 55 58 end_category 56 59 end_object … … 76 79 goal_expansion 77 80 halt 81 if 78 82 implements 79 83 implements_protocol -
trunk/wenv/pygments/logtalk.py
r4400 r4582 159 159 160 160 'directive': [ 161 # Conditional compilation directives 162 (r'(el)?if(?=[(])', Keyword, 'root'), 163 (r'(e(lse|ndif))[.]', Keyword, 'root'), 161 164 # Entity directives 162 165 (r'(category|object|protocol)(?=[(])', Keyword, 'entityrelations'), -
trunk/wenv/smultron/logtalk.plist
r4233 r4582 5 5 <key>autocompleteWords</key> 6 6 <array> 7 <string>if</string> 8 <string>elif</string> 9 <string>else</string> 10 <string>endif</string> 7 11 <string>encoding</string> 8 12 <string>calls</string> -
trunk/wenv/source-highlight/logtalk.lang
r4259 r4582 2 2 # 3 3 # written by Paulo Moura (pmoura@logtalk.org) 4 # last revised on 10 May20084 # last revised on 8 November 2008 5 5 6 6 comment start "%" … … 64 64 cbracket = "{|}" 65 65 66 preproc = '^[[:blank:]]*:-[[:blank:]](ca(lls|tegory)|p(ublic|r(ot(ocol|ected)|ivate))|e( ncoding|xports)|in(fo|itialization)|alias|d(ynamic|iscontiguous)|m(eta_predicate|od(e|ule)|ultifile)|synchronized|o(bject|p)|use(s|_module))(?=\()',67 '^[[:blank:]]*:-[[:blank:]](end _(category|object|protocol)|dynamic|synchronized|threaded)\.'66 preproc = '^[[:blank:]]*:-[[:blank:]](ca(lls|tegory)|p(ublic|r(ot(ocol|ected)|ivate))|e(l(if|se)|ncoding|xports)|i(f|n(fo|itialization))|alias|d(ynamic|iscontiguous)|m(eta_predicate|od(e|ule)|ultifile)|synchronized|o(bject|p)|use(s|_module))(?=\()', 67 '^[[:blank:]]*:-[[:blank:]](end(if|_(category|object|protocol))|dynamic|synchronized|threaded)\.' 68 68 69 69 preproc = '\<(complements|extends|i(nstantiates|mp(lements|orts))|specializes)(?=\()' -
trunk/wenv/subethaedit/logtalk.plist
r3952 r4582 65 65 <key>Regular Expressions</key> 66 66 <array> 67 <string>\:\-[[:space:]](if)\(</string> 68 <string>\:\-[[:space:]](elif)\(</string> 69 <string>\:\-[[:space:]](else)\.</string> 70 <string>\:\-[[:space:]](endif)\.</string> 67 71 <string>\:\-[[:space:]](object)\(</string> 68 72 <string>\:\-[[:space:]](end_object)\.</string> -
trunk/wenv/subethaedit2/Logtalk.mode/Contents/Resources/AutocompleteAdditions.txt
r4233 r4582 1 if() 2 elif() 3 else 4 endif 1 5 object(, , , , ). 2 6 object(, , , ). -
trunk/wenv/subethaedit2/Logtalk.mode/Contents/Resources/SyntaxDefinition.xml
r4234 r4582 20 20 21 21 <keywords id="Directives" color="#881280" useforautocomplete="yes"> 22 <regex>:-\s(object)\(</regex> 23 <regex>:-\s(protocol)\(</regex> 24 <regex>:-\s(category)\(</regex> 25 <regex>:-\s(end_(object|protocol|category))\.</regex> 26 <regex>:-\s(alias)\(</regex> 27 <regex>:-\s(e(ncoding|xport))\(</regex> 28 <regex>:-\s(initialization)\(</regex> 29 <regex>:-\s(info)\(</regex> 30 <regex>:-\s(mod(e|ule))\(</regex> 31 <regex>:-\s(dynamic)\(</regex> 22 <regex>:-\s(object)\(</regex> 23 <regex>:-\s(protocol)\(</regex> 24 <regex>:-\s(category)\(</regex> 25 <regex>:-\s(end_(object|protocol|category))\.</regex> 26 <regex>:-\s(alias)\(</regex> 27 <regex>:-\s(e(ncoding|xport))\(</regex> 28 <regex>:-\s(initialization)\(</regex> 29 <regex>:-\s(info)\(</regex> 30 <regex>:-\s(mod(e|ule))\(</regex> 31 <regex>:-\s(dynamic)\(</regex> 32 32 <regex>:-\s(dynamic)\.</regex> 33 <regex>:-\s((el)?if)\(</regex> 34 <regex>:-\s(e(lse|ndif))\.</regex> 33 35 <regex>:-\s(discontiguous)\(</regex> 34 36 <regex>:-\s(p(ublic|r(otected|ivate)))\(</regex> … … 36 38 <regex>:-\s(op)\(</regex> 37 39 <regex>:-\s(calls)\(</regex> 38 <regex>:-\s(use(s|_module))\(</regex> 39 <regex>:-\s(synchronized)\(</regex> 40 <regex>:-\s(synchronized)\.</regex> 41 <regex>:-\s(threaded)\.</regex> 40 <regex>:-\s(use(s|_module))\(</regex> 41 <regex>:-\s(synchronized)\(</regex> 42 <regex>:-\s(synchronized)\.</regex> 43 <regex>:-\s(threaded)\.</regex> 42 44 </keywords> 43 45 -
trunk/wenv/textmate/Logtalk.tmbundle/Preferences/Completions.plist
r4233 r4582 11 11 <key>completions</key> 12 12 <array> 13 <string>if</string> 14 <string>elif</string> 15 <string>else</string> 16 <string>endif</string> 13 17 <string>encoding</string> 14 18 <string>calls</string> -
trunk/wenv/textmate/Logtalk.tmbundle/Syntaxes/Logtalk.plist
r4250 r4582 100 100 </dict> 101 101 <key>match</key> 102 <string>(:-)\s+( dynamic|synchronized|threaded)(?=[.])</string>102 <string>(:-)\s+(e(lse|ndif)|dynamic|synchronized|threaded)(?=[.])</string> 103 103 <key>name</key> 104 104 <string>storage.modifier.others.logtalk</string> … … 114 114 </dict> 115 115 <key>match</key> 116 <string>(:-)\s+(calls|e( ncoding|xport)|in(itialization|fo)|uses)(?=[(])</string>116 <string>(:-)\s+(calls|e(lif|ncoding|xport)|i(f|n(itialization|fo))|uses)(?=[(])</string> 117 117 <key>name</key> 118 118 <string>storage.modifier.others.logtalk</string> -
trunk/wenv/vim/completion/logtalk.dict
r4233 r4582 1 if 2 elif 3 else 4 endif 1 5 encoding 2 6 calls -
trunk/wenv/vim/syntax/logtalk.vim
r4568 r4582 3 3 " Language: Logtalk 4 4 " Maintainer: Paulo Moura <pmoura@logtalk.org> 5 " Last Change: October 31, 20085 " Last Change: November 8, 2008 6 6 7 7 … … 76 76 " Logtalk directives 77 77 78 syn region logtalkDir matchgroup=logtalkDirTag start=":- if(" matchgroup=logtalkDirTag end=")\." contains=ALL 79 syn region logtalkDir matchgroup=logtalkDirTag start=":- elif(" matchgroup=logtalkDirTag end=")\." contains=ALL 80 syn match logtalkDirTag ":- else\." 81 syn match logtalkDirTag ":- endif\." 78 82 syn region logtalkDir matchgroup=logtalkDirTag start=":- alias(" matchgroup=logtalkDirTag end=")\." contains=ALL 79 83 syn region logtalkDir matchgroup=logtalkDirTag start=":- calls(" matchgroup=logtalkDirTag end=")\." contains=ALL
