Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ion-vim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
matu3ba
ion-vim
Commits
e9220920
Commit
e9220920
authored
5 years ago
by
Michael Aaron Murphy
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'master'
Removed explicit coloring part and made some general changes See merge request
!3
parents
7f66ba1f
8e191f71
Branches
master
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
syntax/ion.vim
+13
-59
13 additions, 59 deletions
syntax/ion.vim
with
13 additions
and
59 deletions
syntax/ion.vim
+
13
−
59
View file @
e9220920
" Check editor version
if
version
<
600
syntax
clear
syntax
clear
elseif
exists
(
"b:current_syntax"
)
finish
finish
endif
syn
region doubleQuote start
=
'"'
end
=
'"'
contains
=
arrayVar
,
variable
,
process
,
singleQuote
...
...
@@ -14,11 +14,11 @@ syn match variable "$[a-zA-Z0-9_]\+"
syn
region process start
=
"$("
end
=
")"
transparent
syn
region process start
=
"@("
end
=
")"
transparent
syn
match
ionNumber
'[+-]\?\([0-9]*[.]\)\?[0-9]\+'
syn
match
c
omment
'[#].*$'
syn
match
o
perator
'&'
syn
match
o
perator
'&&'
syn
match
o
perator
'||'
syn
match
o
perator
'[|<>&]'
syn
match
C
omment
'[#].*$'
syn
match
O
perator
'&'
syn
match
O
perator
'&&'
syn
match
O
perator
'||'
syn
match
O
perator
'[|<>&]'
syn
match
flag
'[ ]\([-]\)\w\+'
syntax
keyword ionKeyword
.
...
...
@@ -72,56 +72,10 @@ syntax keyword ionKeyword unalias
syntax
keyword ionKeyword wait
syntax
keyword ionKeyword
while
" Get current BackgroundTheme of terminal (xterm)
let
g:background
=
system
(
'./gettheme.sh'
)
let
g:theme
=
strpart
(
g:background
,
7
,
10
)
if
g:theme
==
#
'LightTheme'
hi
Operator cterm
=
bold
ctermfg
=
black
hi
Array cterm
=
bold
ctermfg
=
darkblue
hi
String cterm
=
bold
ctermfg
=
darkgreen
hi
DoubleQuote ctermfg
=
darkgreen
hi
SingleQuote ctermfg
=
darkgreen
hi
Numbers ctermfg
=
darkyellow
hi
!
Comment ctermfg
=
darkgrey cterm
=
italic
hi
Keywords ctermfg
=
magenta cterm
=
bold
hi
Flag cterm
=
bold
ctermfg
=
darkyellow
hi
def
link ionKeyword Keywords
hi
def
link arrayVar Array
hi
def
link variable String
hi
def
link ionNumber Numbers
hi
def
link doubleQuote DoubleQuote
hi
def
link singleQuote SingleQuote
hi
def
link process PreProc
hi
def
link comment Comment
hi
def
link operator Operator
hi
def
link flag Flag
else
" DarkTheme
hi
Operator cterm
=
bold
ctermfg
=
white
hi
Array cterm
=
bold
ctermfg
=
lightblue
hi
String cterm
=
bold
ctermfg
=
lightmagenta
hi
DoubleQuote ctermfg
=
green
hi
SingleQuote ctermfg
=
lightgreen
hi
Numbers ctermfg
=
cyan
hi
!
Comment ctermfg
=
grey cterm
=
italic
hi
Keywords ctermfg
=
magenta cterm
=
bold
hi
Flag cterm
=
bold
ctermfg
=
darkyellow
hi
def
link ionKeyword Keywords
hi
def
link arrayVar Array
hi
def
link ionKeyword Keyword
hi
def
link variable String
hi
def
link ionNumber Numbers
hi
def
link doubleQuote DoubleQuote
hi
def
link singleQuote SingleQuote
hi
def
link process PreProc
hi
def
link comment Comment
hi
def
link operator Operator
hi
def
link flag Flag
endif
hi
def
link doubleQuote String
hi
def
link singleQuote Character
hi
def
link ionNumber Number
hi
def
link arrayVar Type
hi
def
link flag Structure
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment