Source release 17.1.0
This commit is contained in:
8
third_party/protobuf/editors/proto.vim
vendored
8
third_party/protobuf/editors/proto.vim
vendored
@@ -69,10 +69,10 @@ syn keyword pbBool true false
|
||||
syn match pbInt /-\?\<\d\+\>/
|
||||
syn match pbInt /\<0[xX]\x+\>/
|
||||
syn match pbFloat /\<-\?\d*\(\.\d*\)\?/
|
||||
syn region pbComment start="\/\*" end="\*\/" contains=@pbCommentGrp
|
||||
syn region pbComment start="//" skip="\\$" end="$" keepend contains=@pbCommentGrp
|
||||
syn region pbString start=/"/ skip=/\\./ end=/"/
|
||||
syn region pbString start=/'/ skip=/\\./ end=/'/
|
||||
syn region pbComment start="\/\*" end="\*\/" contains=@pbCommentGrp,@Spell
|
||||
syn region pbComment start="//" skip="\\$" end="$" keepend contains=@pbCommentGrp,@Spell
|
||||
syn region pbString start=/"/ skip=/\\./ end=/"/ contains=@Spell
|
||||
syn region pbString start=/'/ skip=/\\./ end=/'/ contains=@Spell
|
||||
|
||||
if version >= 508 || !exists("did_proto_syn_inits")
|
||||
if version < 508
|
||||
|
||||
12
third_party/protobuf/editors/protobuf-mode.el
vendored
12
third_party/protobuf/editors/protobuf-mode.el
vendored
@@ -1,4 +1,4 @@
|
||||
;;; protobuf-mode.el --- major mode for editing protocol buffers.
|
||||
;;; protobuf-mode.el --- major mode for editing protocol buffers. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Author: Alexandre Vassalotti <alexandre@peadrop.com>
|
||||
;; Created: 23-Apr-2009
|
||||
@@ -68,7 +68,7 @@
|
||||
(eval-when-compile
|
||||
(and (= emacs-major-version 24)
|
||||
(>= emacs-minor-version 4)
|
||||
(require 'cl))
|
||||
(require 'cl-lib))
|
||||
(require 'cc-langs)
|
||||
(require 'cc-fonts))
|
||||
|
||||
@@ -193,7 +193,7 @@
|
||||
;;;###autoload (add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode))
|
||||
|
||||
;;;###autoload
|
||||
(defun protobuf-mode ()
|
||||
(define-derived-mode protobuf-mode prog-mode "Protobuf"
|
||||
"Major mode for editing Protocol Buffers description language.
|
||||
|
||||
The hook `c-mode-common-hook' is run with no argument at mode
|
||||
@@ -216,7 +216,11 @@ Key bindings:
|
||||
(c-common-init 'protobuf-mode)
|
||||
(easy-menu-add protobuf-menu)
|
||||
(c-run-mode-hooks 'c-mode-common-hook 'protobuf-mode-hook)
|
||||
(c-update-modeline))
|
||||
(c-update-modeline)
|
||||
(setq imenu-generic-expression
|
||||
'(("Message" "^[[:space:]]*message[[:space:]]+\\([[:alnum:]]+\\)" 1)
|
||||
("Enum" "^[[:space:]]*enum[[:space:]]+\\([[:alnum:]]+\\)" 1)
|
||||
("Service" "^[[:space:]]*service[[:space:]]+\\([[:alnum:]]+\\)" 1))))
|
||||
|
||||
(provide 'protobuf-mode)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user