]> Nishi Git Mirror - dataworks.git/commitdiff
add vim syntax file
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Sun, 9 Jun 2024 12:54:43 +0000 (12:54 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Sun, 9 Jun 2024 12:54:43 +0000 (12:54 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@193 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

PKGBUILD
dataworks.vim [new file with mode: 0644]
increment-PKGBUILD

index d829a3ababc1536d35a4e8ec200c9520b0b07bff..7f37d8498b7ae68583b125d83333ff949565685e 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,9 +5,9 @@ pkgver='0.1.0'
 pkgdesc='Database System'
 arch=('i686' 'x86_64')
 license=('BSD')
-pkgrel='29'
+pkgrel='30'
 makedepends=('byacc')
-source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=189')
+source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=193')
 sha256sums=('SKIP')
 
 build() {
diff --git a/dataworks.vim b/dataworks.vim
new file mode 100644 (file)
index 0000000..7ad7bef
--- /dev/null
@@ -0,0 +1,24 @@
+" Vim syntax file
+" SVN ID: $Id$
+" Language: DataWorks
+" Homepage: http://nishi.boats/dataworks
+" Maintainer: Nishi <nishi@nishi.boats>
+
+if exists("b:current_syntax")
+       finish
+endif
+
+syn match dataworksString /\v"[^"]+"/ display
+syn match dataworksString /\v'[^']+'/ display
+syn match dataworksNumber /\v[+-]?[0-9]+(\.[0-9]+)?/ display
+syn match dataworksComment /\v#.+$/ display
+syn region dataworksArgument start='(' end=')' fold transparent
+syn match dataworksIdent /\v\c(create_table|use|insert|version)/ display
+
+hi def link dataworksString String
+hi def link dataworksNumber Number
+hi def link dataworksComment Comment
+hi def link dataworksIdent Identifier
+
+syn sync minlines=512
+let b:current_syntax = "dataworks"
index 64bb6b746dceaf12b0ba8c08f310b0426babde44..e85087affded170efcbc6f9672a6fc671d839ed0 100644 (file)
@@ -1 +1 @@
-30
+31