乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      [emacs][delphi] 跳到函數(shù)聲明/實現(xiàn)

       Xiao_BaiCai 2013-09-24
      (defun delphi-jump-to-declaration ()
        (interactive)
        (let ( (pt (ignore-errors
                     (save-excursion
              (end-of-line)
              (re-search-backward "^\\(procedure\\|function\\|constructor\\|destructor\\)[ \t]+\\([_a-zA-Z][_a-zA-Z0-9]*\\>\\)?\\.?\\([_a-zA-Z][_a-zA-Z0-9]*\\)")
              (let ( (method-type  (match-string-no-properties 1)) 
                     (class-name   (if (match-string 3) (match-string-no-properties 2) "" ))
                     (func-name    (or (match-string-no-properties 3) (match-string-no-properties 2))) )
                (beginning-of-buffer)
                (if (> (length class-name) 0)
                    (re-search-forward (format "%s[ \t]+=" class-name)))
                (when (re-search-forward (format "%s[ \t]+%s\\>" method-type func-name))
                    (backward-word)
                    (point)))))) )
          (when pt (goto-char pt))))
            
      
      (defun delphi-jump-to-implementaion()
        (interactive)
        (let ( (pt (ignore-errors
                     (beginning-of-line)
                     (when (re-search-forward "\\(procedure\\|function\\|constructor\\|destructor\\)[ \\t]+\\([_a-zA-Z][_a-zA-Z0-9]*\\)")
                       (let ( (method-type  (match-string-no-properties 1))  ;;procedure/function/constructor
                              (func-name    (match-string-no-properties 2))
                              type-name
                              type-type)
                         (when (re-search-backward "\\<\\([_a-zA-Z][_a-zA-Z0-9]*\\)[ \\t]*=[ \\t]*\\(class\\|interface\\)")
                           (setq type-name (match-string-no-properties 1))
                           (setq type-type (match-string-no-properties 2)))
                         (if (string= type-type "interface")
                             (error "interface has no implementation part: %s" type-name)
                           (progn
                             (re-search-forward "^implementation\\>" nil t)
                             ;;(message "%s|%s|%s" method-type type-name func-name)
                             (if type-name
                                 (re-search-forward (format "%s[ \\t]+%s\\.[ \\t]?%s\\>" method-type type-name func-name))
                               (re-search-forward (format "%s[ \\t]+%s\\>" method-type func-name))))))))) )
          (when pt (progn
      	       (goto-char pt)
      	       (beginning-of-line)))))
      			
      
      (define-key delphi-mode-map (kbd "<C-S-up>") 'delphi-jump-to-declaration)
      (define-key delphi-mode-map (kbd "<C-S-down>") 'delphi-jump-to-implementaion)
      

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多