clean-up trailing whitespace (#453)
These changes have been mostly auto-generated with: find . -type f -print0 | xargs -0 perl -pi -e 's/ +$//' Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
committed by
GitHub
parent
071b89ad30
commit
50f397b249
12
vm/Vagrantfile
vendored
12
vm/Vagrantfile
vendored
@@ -11,15 +11,15 @@ Vagrant.configure(2) do |config|
|
||||
vb.memory = 2048
|
||||
vb.cpus = 2
|
||||
vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
|
||||
vb.customize ["storageattach", :id,
|
||||
"--storagectl", "IDE Controller",
|
||||
"--port", "0", "--device", "0",
|
||||
"--type", "dvddrive",
|
||||
"--medium", "emptydrive"]
|
||||
vb.customize ["storageattach", :id,
|
||||
"--storagectl", "IDE Controller",
|
||||
"--port", "0", "--device", "0",
|
||||
"--type", "dvddrive",
|
||||
"--medium", "emptydrive"]
|
||||
vb.customize ["modifyvm", :id, "--vram", "32"]
|
||||
|
||||
end
|
||||
config.vm.synced_folder '.', '/vagrant', disabled: true
|
||||
config.vm.synced_folder '.', '/vagrant', disabled: true
|
||||
config.vm.hostname = "p4"
|
||||
config.vm.provision "file", source: "p4-logo.png", destination: "/home/vagrant/p4-logo.png"
|
||||
config.vm.provision "file", source: "p4_16-mode.el", destination: "/home/vagrant/p4_16-mode.el"
|
||||
|
||||
@@ -34,7 +34,7 @@ syn keyword p4ObjectAttributeKeyword counters meters
|
||||
syn keyword p4ObjectKeyword const in out inout
|
||||
|
||||
|
||||
syn keyword p4Annotation @name @tableonly @defaultonly
|
||||
syn keyword p4Annotation @name @tableonly @defaultonly
|
||||
syn keyword p4Annotation @globalname @atomic @hidden
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ syn keyword p4Type bit bool int varbit void error
|
||||
|
||||
" Integer Literals
|
||||
|
||||
syn match p4Int '[0-9][0-9_]*'
|
||||
syn match p4Int '[0-9][0-9_]*'
|
||||
syn match p4Indentifier '[A-Za-z_][A-Za-z0-9_]*'
|
||||
syn match p4HexadecimalInt '0[Xx][0-9a-fA-F]\+'
|
||||
syn match p4DecimalInt '0[dD][0-9_]\+'
|
||||
@@ -72,7 +72,7 @@ syn keyword p4Primitive isValid setValid setInvalid
|
||||
syn keyword p4Primitive hit action_run
|
||||
" Packet_in methods
|
||||
syn keyword p4Primitive extract lookahead advance length
|
||||
" Packet_out methods
|
||||
" Packet_out methods
|
||||
syn keyword p4Primitive emit
|
||||
" Known parser states
|
||||
syn keyword p4Primitive accept reject
|
||||
@@ -91,7 +91,7 @@ syn keyword p4Constant OverwritingHeader HeaderTooShort ParserTiimeout
|
||||
" Boolean
|
||||
syn keyword p4Boolean false true
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Apply highlight groups to syntax groups defined above
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
|
||||
@@ -29,19 +29,19 @@
|
||||
;; Syntactic HighLighting
|
||||
|
||||
;; Main keywors (declarations and operators)
|
||||
(setq p4_16-keywords
|
||||
(setq p4_16-keywords
|
||||
'("action" "apply"
|
||||
"control"
|
||||
"default"
|
||||
"default"
|
||||
"else" "enum" "extern" "exit"
|
||||
"header" "header_union"
|
||||
"if"
|
||||
"match_kind"
|
||||
"package" "parser"
|
||||
"package" "parser"
|
||||
"return"
|
||||
"select" "state" "struct" "switch"
|
||||
"table" "transition" "tuple" "typedef"
|
||||
"verify"
|
||||
"verify"
|
||||
))
|
||||
|
||||
(setq p4_16-annotations
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
(setq p4_16-attributes
|
||||
'("const" "in" "inout" "out"
|
||||
;; Tables
|
||||
;; Tables
|
||||
"key" "actions" "default_action" "entries" "implementation"
|
||||
"counters" "meters"
|
||||
))
|
||||
@@ -97,7 +97,7 @@
|
||||
))
|
||||
|
||||
(setq p4_16-cpp
|
||||
'("#include"
|
||||
'("#include"
|
||||
"#define" "#undef"
|
||||
"#if" "#ifdef" "#ifndef"
|
||||
"#elif" "#else"
|
||||
@@ -209,7 +209,7 @@
|
||||
(set-syntax-table p4_16-mode-syntax-table)
|
||||
(use-local-map p4_16-mode-map)
|
||||
(set (make-local-variable 'font-lock-defaults) '(p4_16-font-lock-keywords))
|
||||
(set (make-local-variable 'indent-line-function) 'p4_16-indent-line)
|
||||
(set (make-local-variable 'indent-line-function) 'p4_16-indent-line)
|
||||
(setq major-mode 'p4_16-mode)
|
||||
(setq mode-name "P4_16")
|
||||
(setq imenu-generic-expression p4_16-imenu-generic-expression)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Print script commands and exit on errors.
|
||||
set -xe
|
||||
|
||||
#Src
|
||||
#Src
|
||||
BMV2_COMMIT="b447ac4c0cfd83e5e72a3cc6120251c1e91128ab" # August 10, 2019
|
||||
PI_COMMIT="41358da0ff32c94fa13179b9cee0ab597c9ccbcc" # August 10, 2019
|
||||
P4C_COMMIT="69e132d0d663e3408d740aaf8ed534ecefc88810" # August 10, 2019
|
||||
@@ -128,7 +128,7 @@ sudo ln -s /usr/share/emacs/site-lisp/p4_16-mode.el /home/p4/.emacs.d/p4_16-mode
|
||||
sudo chown -R p4:p4 /home/p4/.emacs.d/
|
||||
|
||||
# --- Vim --- #
|
||||
cd ~
|
||||
cd ~
|
||||
mkdir .vim
|
||||
cd .vim
|
||||
mkdir ftdetect
|
||||
|
||||
Reference in New Issue
Block a user