summaryrefslogtreecommitdiff
path: root/syntax
diff options
context:
space:
mode:
authorJon Cairns <jon@joncairns.com>2012-08-03 15:16:02 +0100
committerJon Cairns <jon@ggapps.co.uk>2012-08-03 15:16:02 +0100
commit9cf744968a54db6938f488c1fba222171b2dae4b (patch)
tree7a7d7d93fb5317ba58798a8e043f64ea78ef21f9 /syntax
parent513dec044735b840116fa76a7231eadaac802030 (diff)
downloadvdebug-9cf744968a54db6938f488c1fba222171b2dae4b.zip
Added syntax files for all windows
Diffstat (limited to 'syntax')
-rw-r--r--syntax/debugger_log.vim20
-rw-r--r--syntax/debugger_stack.vim17
-rw-r--r--syntax/debugger_status.vim20
-rw-r--r--syntax/debugger_watch.vim34
4 files changed, 77 insertions, 14 deletions
diff --git a/syntax/debugger_log.vim b/syntax/debugger_log.vim
new file mode 100644
index 0000000..c1b4d23
--- /dev/null
+++ b/syntax/debugger_log.vim
@@ -0,0 +1,20 @@
+" Vim syntax file
+" Language: Vim Debugger Watch
+" Maintainer: Jon Cairns
+" Latest Revision: 2 August 2012
+
+if exists("b:current_syntax")
+ finish
+endif
+
+syn match debuggerLogMarker '^-'
+syn match debuggerLogDebug '\zs\[Debug\]\ze'
+syn match debuggerLogInfo '\zs\[Info\]\ze'
+syn match debuggerLogError '\zs\[ERROR\]\ze'
+syn match debuggerLogDate '\s{.*}\s'
+
+hi def link debuggerLogMarker Type
+hi def link debuggerLogInfo Special
+hi def link debuggerLogDebug Comment
+hi def link debuggerLogError Error
+hi def link debuggerLogDate Comment
diff --git a/syntax/debugger_stack.vim b/syntax/debugger_stack.vim
new file mode 100644
index 0000000..0613d74
--- /dev/null
+++ b/syntax/debugger_stack.vim
@@ -0,0 +1,17 @@
+" Vim syntax file
+" Language: Vim Debugger Watch
+" Maintainer: Jon Cairns
+" Latest Revision: 2 August 2012
+
+if exists("b:current_syntax")
+ finish
+endif
+
+syn match debuggerStackNumberGroup '^\[\d\+\]' contains=debuggerStackNumber
+syn match debuggerStackName '\s\zs\S\+\ze\s'
+syn region debuggerStackFile start=+\s\s.+ end=+$+ contains=debuggerStackLineNumber
+syn match debuggerStackLineNumber ':\zs\d\+\ze' contained
+
+hi def link debuggerStackNumberGroup Type
+hi def link debuggerStackFile String
+hi def link debuggerStackLineNumber Special
diff --git a/syntax/debugger_status.vim b/syntax/debugger_status.vim
new file mode 100644
index 0000000..ceb4b80
--- /dev/null
+++ b/syntax/debugger_status.vim
@@ -0,0 +1,20 @@
+" Vim syntax file
+" Language: Vim Debugger Watch
+" Maintainer: Jon Cairns
+" Latest Revision: 2 August 2012
+
+if exists("b:current_syntax")
+ finish
+endif
+
+syn match debuggerStatusIdentifier '^Status:'
+syn match debuggerStatusBreak '\s\zsbreak\ze'
+syn match debuggerStatusStart '\s\zsrunning\ze'
+syn match debuggerStatusStop '\s\zs\(stopped\|stopping\)\ze'
+syn region debuggerStatusInfo start='Press' end='information.'
+
+hi def link debuggerStatusIdentifier Type
+hi def link debuggerStatusStop Special
+hi def link debuggerStatusBreak Error
+hi def link debuggerStatusStart Constant
+hi def link debuggerStatusInfo Comment
diff --git a/syntax/debugger_watch.vim b/syntax/debugger_watch.vim
index 1c5d2fa..5be4dd7 100644
--- a/syntax/debugger_watch.vim
+++ b/syntax/debugger_watch.vim
@@ -1,5 +1,5 @@
" Vim syntax file
-" Language: Vim Debugger Watch
+" Language: Vim Debugger debuggerWatch
" Maintainer: Jon Cairns
" Latest Revision: 2 August 2012
@@ -7,18 +7,24 @@ if exists("b:current_syntax")
finish
endif
-syn match watchMarker '^\s\+[^|\/]'
-syn match watchJoiner '^\s\+[|\/^]'
-syn match watchVarName '\s\zs.\+\ze\s='
-syn match watchTypeContainer '=\s\zs\(.*\)\ze\s' contains=watchType,watchSize
-syn match watchType '\w' contained
-syn match watchSize '\[\d\+\]' contained
-syn region watchString start='"' skip='\\"' end='"'
+syn match debuggerWatchMarker '^\s\+[^|\/]'
+syn match debuggerWatchJoiner '^\s\+[|\/^]'
+syn match debuggerWatchNumber '\d\+\.\=\d*'
+syn match debuggerWatchVarName '\s\zs.\+\ze\s=' contains=debuggerWatchStringKey
+syn match debuggerWatchStringKey '\'[^']\+\'' contained
+syn match debuggerWatchTypeContainer '=\s\zs(.*)\ze\s' contains=debuggerWatchType,debuggerWatchSize
+syn match debuggerWatchVarValue ')\zs.*$\ze'
+syn match debuggerWatchType '(\zs[^ )]\+)\ze' contained
+syn match debuggerWatchSize '\[\zs\d\+\ze\]' contained
+syn region debuggerWatchString start=+\s`+ skip=+\\`+ end=+`\s*$+
-hi def link watchMarker Special
-hi def link watchType Type
-hi def link watchString String
-hi def link watchVarName Identifier
-hi def link watchJoiner Structure
-hi def link watchSize Number
+hi def link debuggerWatchMarker Special
+hi def link debuggerWatchTypeContainer Type
+hi def link debuggerWatchType Type
+hi def link debuggerWatchString String
+hi def link debuggerWatchStringKey String
+hi def link debuggerWatchVarName Identifier
+hi def link debuggerWatchJoiner Structure
+hi def link debuggerWatchNumber Number
+hi def link debuggerWatchSize Number