Changeset 17553 for util

Show
Ignore:
Timestamp:
08/31/07 20:45:57 (17 months ago)
Author:
renormalist
Message:

cperl-mode:

  • take in again the differentiation between Hash and Block (not perfect yet but better than without it)
  • more Type keywords
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/cperl-mode.el

    r17475 r17553  
    66876687                                                                                (1- e) 'to-end)) 
    66886688                                                                  (and (memq qtag (append "pPN" nil)) 
    6689                                                                            (re-search-forward "\\={[^{}]+}\\|." 
     6689                                                                           (re-search-forward "\\={[^{}]+}\\|." ;; ss5: hier interessant f�und aehnliche Spezialvariablen? 
    66906690                                                                                                                  (1- e) 'to-end)) 
    66916691                                                                  (eq (char-syntax qtag) ?w)) 
     
    69146914  ;; Positions is before ?\{.  Checks whether it starts a block. 
    69156915  ;; No save-excursion!  This is more a distinguisher of a block/hash ref... 
    6916 ; ss5: 2007-08-27 seems not to work 
    6917 ;  (or 
    6918 ;   (and ; perl6: it's never a hash if whitespace before brace 
    6919 ;    (cond (cperl-use-v6)) 
    6920 ;    (memq (preceding-char) (append " \t" nil))) 
     6916  (or 
     6917   (and ; perl6: it's never a hash if whitespace before brace (not yet perfect) 
     6918    (cond (cperl-use-v6)) 
     6919    (memq (preceding-char) (append " \t" nil))) 
    69216920   (progn 
    69226921     (cperl-backward-to-noncomment (point-min)) 
     
    69426941             (progn ; perl6: "if/elsif/unless/while/until/given/when/for/loop" without parens; just look at beginning of line 
    69436942               (beginning-of-line) 
    6944                (looking-at "\\s *}?\\s *\\(\\(els\\(e\\s +\\|\\)\\)?if\\|un\\(less\\|til\\)\\|given\\|wh\\(ile\\|en\\)\\|for\\|loop\\)\\>"))))) 
    6945 ; corresponding to ss5: 2007-08-27 seems not to work 
    6946 ;) 
     6943               (looking-at "\\s *}?\\s *\\(\\(els\\(e\\s +\\|\\)\\)?if\\|un\\(less\\|til\\)\\|given\\|wh\\(ile\\|en\\)\\|for\\|loop\\)\\>")))))) 
    69476944) 
    69486945 
     
    78757872              ;; the builtin types: 
    78767873              ;; bit" "int" "str" "num" "ref" "bool" "Bit" "Int" "Str" "Num" "Ref" 
     7874                  ;; Complex Exception Seq Range Set Junction Pair Mapping Signature Capture " 
     7875          ;; Bag\\|Mapping\\|Blob\\|KeyHash\\|KeySet\\|KeyBag\\|Buf\\|Regex\\|Match\\|Any\\|" 
    78777876              ;; Bool" "Array" "Hash" "IO" "Code" "Routine" "Sub" "Method" "Submethod" 
    78787877              ;; Macro" "Rule" "Block" "Bare" "Parametric" "Package" "Module" "Class" "Role" 
     
    78817880              "bit\\|int\\|str\\|num\\|ref\\|bool\\|Bit\\|Int\\|Str\\|Num\\|Ref\\|" 
    78827881                  "Complex\\|Exception\\|Seq\\|Range\\|Set\\|Junction\\|Pair\\|Mapping\\|Signature\\|Capture\\|" 
     7882          "Bag\\|Mapping\\|Blob\\|KeyHash\\|KeySet\\|KeyBag\\|Buf\\|Regex\\|Match\\|Any\\|" 
    78837883              "Bool\\|Array\\|Hash\\|IO\\|Code\\|Routine\\|Sub\\|Method\\|Submethod\\|" 
    78847884              "Macro\\|Rule\\|Block\\|Bare\\|Parametric\\|Package\\|Module\\|Class\\|Role\\|"