Advertisement
Guest User

Untitled

a guest
Jan 18th, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 5.08 KB | None | 0 0
  1. Index: netrexx-mode.el
  2. ===================================================================
  3. --- netrexx-mode.el (revision 188)
  4. +++ netrexx-mode.el (working copy)
  5. @@ -288,7 +288,7 @@
  6.  ;; Level 1 - comments and strings
  7.  (setq netrexx-font-lock-keywords-1
  8.        (list
  9. -       '("\\<\\(a\\(bstract\\|dapter\\)\\|b\\(inary\\|y\\)\\|c\\(ase\\|atch\\|lass\\|onstant\\)\\|d\\(ep\\(endent\\|recated\\)\\|igits\\|o\\)\\|e\\(lse\\|n\\(d\\|gineering\\)\\|x\\(it\\|tends\\)\\)\\|f\\(inal\\(\\|ly\\)\\|or\\(\\|\\(ever\\|m\\)\\)\\)\\|i\\(f\\|mp\\(lements\\|ort\\)\\|n\\(direct\\|heritable\\|terface\\)\\|terate\\)\\|l\\(abel\\|eave\\|oop\\)\\|m\\(ethod\\)\\|n\\(ative\\|op\\|umeric\\)\\|o\\(ptions\\|therwise\\|ver\\)\\|p\\(a\\(ckage\\|r\\(ent\\|se\\)\\)\\|r\\(ivate\\|o\\(perties\\|tect\\)\\)\\|ublic\\)\\|[Rr]\\(e\\(turn\\(\\|s\\)\\|set\\|xx\\)\\)\\|s\\(ay\\|cientific\\|e\\(t\\(digits\\|form\\)\\|lect\\)\\|hared\\|ignal\\(\\|s\\)\\|ourceline\\|tatic\\|uper\\)\\|t\\(h\\(en\\|is\\)\\|o\\|ra\\(ce\\|nsient\\)\\)\\|u\\(n\\(til\\|used\\)\\|pper\\)\\|v\\(olatile\\)\\|w\\(h\\(en\\|ile\\)\\)\\)\\>" 1 font-lock-keyword-face nil)
  10. +       '("\\<\\(a\\(bstract\\|dapter\\)\\|b\\(inary\\|y\\)\\|c\\(ase\\|atch\\|lass\\|onstant\\)\\|d\\(ep\\(endent\\|recated\\)\\|igits\\|o\\)\\|e\\(lse\\|n\\(d\\|gineering\\)\\|x\\(it\\|tends\\)\\)\\|f\\(inal\\(\\|ly\\)\\|or\\(\\|\\(ever\\|m\\)\\)\\)\\|i\\(f\\|mp\\(lements\\|ort\\)\\|n\\(direct\\|heritable\\|terface\\)\\|terate\\)\\|l\\(abel\\|eave\\|oop\\)\\|m\\(ethod\\)\\|n\\(ative\\|op\\|umeric\\)\\|o\\(ptions\\|therwise\\|ver\\)\\|p\\(a\\(ckage\\|r\\(ent\\|se\\)\\)\\|r\\(ivate\\|o\\(perties\\|tect\\)\\)\\|ublic\\)\\|[Rr]\\(e\\(turn\\(\\|s\\)\\|set\\|xx\\)\\)\\|s\\(ay\\|cientific\\|e\\(t\\(digits\\|form\\)\\|lect\\)\\|hared\\|ignal\\(\\|s\\)\\|ourceline\\|tatic\\|uper\\)\\|t\\(h\\(en\\|is\\)\\|o\\|ra\\(ce\\|nsient\\)\\)\\|u\\(n\\(til\\|used\\)\\|pper\\|ses\\)\\|v\\(olatile\\)\\|w\\(h\\(en\\|ile\\)\\)\\)\\>" 1 font-lock-keyword-face nil)
  11.         '("\\.\\(a\\(b\\(brev\\|s\\)\\|ddlib\\)\\|b\\(2x\\)\\|c\\(2\\(d\\|x\\)\\|ent\\(re\\|er\\)\\|ha\\(ngestr\\|rat\\)\\|lose\\|o\\(mpare\\|p\\(ies\\|yindexed\\)\\|untstr\\)\\)\\|d\\(2\\(c\\|x\\)\\|at\\(atype\\|e\\)\\|el\\(str\\|word\\)\\)\\|e\\(quals\\|xists\\)\\|f\\(orm\\(at\\|word\\)\\)\\|h\\(ashcode\\)\\|i\\(nsert\\)\\|l\\(astpos\\|e\\(ft\\|ngth\\)\\|ower\\)\\|m\\(ax\\|in\\)\\|o\\(p\\(a\\(dd\\|nd\\)\\|cc\\|ccblank\\|div\\|divl\\|eq\\|eqs\\|gt\\|gt\\(eq\\|eqs\\|s\\)\\|lt\\|lt\\(eq\\|eqs\\|s\\)\\|m\\(inus\\|ult\\)\\|not\\|not\\(eq\\|eqs\\)\\|or\\|p\\(lus\\|ow\\)\\|rem\\|sub\\|xor\\)verlay\\)\\|p\\(os\\)\\|r\\(everse\\|ight\\)\\|s\\(equence\\|ign\\|pace\\|trip\\|ub\\(str\\|word\\)\\)\\|t\\(o\\(b\\(oolean\\|yte\\)\\|char\\|chararray\\|double\\|float\\|int\\|long\\|short\\|string\\)\\|r\\(anslate\\|unc\\)\\)\\|u\\(pper\\)\\|v\\(erify\\)\\|w\\(ord\\(\\|index\\|lengh\\|pos\\|s\\)\\|rite\\(ch\\|ln\\)\\)\\|x\\(2\\(b\\|c\\|d\\)\\)\\)\\>" 1 font-lock-netrexx-method-face nil)
  12.      '( "\\.\\([a-zA-Z0-9_]+\\)(" 1 font-lock-method-face nil)
  13.      ))
  14. @@ -300,7 +300,7 @@
  15.      (list
  16.        ;; class statement
  17.        (list
  18. -       "class *\\(\\<\\w*\\>\\)" '(1 font-lock-variable-name-face nil))
  19. +       "class +\\(\\<\\S-*\\>\\)" '(1 font-lock-variable-name-face nil))
  20.        ;; exit statement
  21.        (list
  22.         "exit \\(\\<.*\\>\\)" '(1 font-lock-variable-name-face nil))
  23. @@ -314,12 +314,15 @@
  24.         "implements \\(\\<.*?,?\\([ \t]*.*?,?\\)*?\\>\\)" '(1 font-lock-variable-name-face nil))
  25.  ;;       (list
  26.  ;;        "\\(extends \\(\\<.*?\\>\\)\\)* implements \\(\\<.*?\\>\\)" '(3 font-lock-variable-name-face nil))
  27. +      ;; uses keyword
  28. +      (list
  29. +       "uses \\(\\<.*?,?\\([ \t]*.*?,?\\)*?\\>\\)" '(1 font-lock-variable-name-face nil))
  30.        ;; import statements
  31.        (list
  32.         "import \\(\\<.*\\>\\)" '(1 font-lock-constant-face nil))
  33.        ;; user function names
  34.        (list
  35. -       "method \\(\\<.*\\>\\)(" '(1 font-lock-function-name-face nil))
  36. +       "method +\\(\\<\\w*\\>\\)" '(1 font-lock-function-name-face nil))
  37.        ;; options statement (note: the binary and the trace keyword clash with the ones
  38.        ;; in the first list, which is needed for the class keyword.
  39.        (list
  40. @@ -1989,9 +1992,10 @@
  41.    (make-local-variable 'indent-line-function)
  42.    (setq indent-line-function 'netrexx-indent-line)
  43.    (make-local-variable 'comment-start)
  44. -  (setq comment-start "/*")
  45. +  ;; (setq comment-start "/*")
  46.    (make-local-variable 'comment-end)
  47. -  (setq comment-end "*/")
  48. +  ;; (setq comment-end "*/")
  49. +  (setq comment-start "-- " comment-end "")
  50.    (make-local-variable 'imenu-case-fold-search)
  51.    (setq imenu-case-fold-search t)
  52.    (make-local-variable 'imenu-generic-expression)
  53. @@ -2002,11 +2006,11 @@
  54.    (setq mode-name "Netrexx")
  55.    (use-local-map netrexx-mode-map)
  56.    (imenu-add-menubar-index)
  57. -  (setq skeleton-pair t)
  58. +  (setq skeleton-pair netrexx-use-skeleton-pairing)
  59.  ;;   (make-local-variable 'skeleton-pair-alist)
  60.  ;;   (make-local-variable 'skeleton-pair-filter)
  61.    (run-hooks 'netrexx-mode-hook))
  62.  
  63.  (provide 'netrexx-mode)
  64.  
  65. -;; netrexx-mode.el ends here
  66. \ No newline at end of file
  67. +;; netrexx-mode.el ends here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement