[mapserver-commits] r8369 - in trunk/docs: _static
development/editing
svn at osgeo.org
svn at osgeo.org
Wed Dec 31 15:21:15 EST 2008
Author: tomkralidis
Date: 2008-12-31 15:21:15 -0500 (Wed, 31 Dec 2008)
New Revision: 8369
Added:
trunk/docs/_static/map.vim
trunk/docs/_static/map_fold.vim
Removed:
trunk/docs/development/editing/map.vim
trunk/docs/development/editing/map_fold.vim
Modified:
trunk/docs/development/editing/vim.txt
Log:
move *.vim files to _static and ref accordingly
Copied: trunk/docs/_static/map.vim (from rev 8368, trunk/docs/development/editing/map.vim)
===================================================================
--- trunk/docs/_static/map.vim (rev 0)
+++ trunk/docs/_static/map.vim 2008-12-31 20:21:15 UTC (rev 8369)
@@ -0,0 +1,99 @@
+" Vim syntax file
+" Language: map (umn mapserver config file)
+" Maintainer: Andreas Hirner <andreas.hirner at dlr.de>
+" Last Change: $Date: 2004/05/25 19:19:37 $
+" Filenames: *.map
+" Note: The definitions below are taken from TextPad syntax definitions (*.syn) by Chris Thorne (thorne at dmsolutions.ca) as of May 2004, for version 4.0 MapServer
+
+" For version 5.x: Clear all syntax items
+" For version 6.x: Quit when a syntax file was already loaded
+if version < 600
+ syntax clear
+elseif exists("b:current_syntax")
+ finish
+endif
+
+" Always ignore case
+syn case ignore
+
+" General keywords first order
+syn keyword mapDefine CLASS END JOIN LABEL LAYER LEGEND MAP METADATA OUTPUTFORMAT
+syn keyword mapDefine PROJECTION QUERYMAP REFERENCE SCALEBAR STYLE SYMBOL WEB
+
+" General keywords second order
+syn keyword mapIdentifier ALPHACOLOR ANGLE ANTIALIAS
+syn keyword mapIdentifier BACKGROUNDCOLOR BACKGROUNDSHADOWCOLOR BACKGROUNDSHADOWSIZE BUFFER
+syn keyword mapIdentifier CHARACTER CLASSITEM COLOR CONNECTION CONNECTIONTYPE
+syn keyword mapIdentifier DATA DATAPATTERN DEBUG DRIVER DUMP
+syn keyword mapIdentifier EMPTY ERROR EXPRESSION EXTENSION EXTENT
+syn keyword mapIdentifier FEATURE FILLED FILTER FILTERITEM FONT FONTSET FOOTER FORCE FORMATOPTION FROM
+syn keyword mapIdentifier GAP GRATICULE GRID GROUP HEADER
+syn keyword mapIdentifier IMAGE IMAGECOLOR IMAGEMODE IMAGEPATH IMAGEQUALITY IMAGETYPE IMAGEURL INDEX INTERLACE INTERVALS
+syn keyword mapIdentifier KEYIMAGE KEYSIZE KEYSPACING
+syn keyword mapIdentifier LABELANGLEITEM LABELCACHE LABELFORMAT LABELITEM LABELMAXSCALE LABELMINSCALE LABELREQUIRES LABELSIZEITEM LATLON LINECAP LINEJOIN LINEJOINMAXSIZE LOG
+syn keyword mapIdentifier MARKER MARKERSIZE MAXARCS MAXBOXSIZE MAXFEATURES MAXINTERVAL MAXSCALE MAXSIZE MAXSUBDIVIDE MAXTEMPLATE MIMETYPE
+syn keyword mapIdentifier MINARCS MINBOXSIZE MINDISTANCE MINFEATURESIZE MININTERVAL MINSCALE MINSIZE MINSUBDIVIDE MINTEMPLATE
+syn keyword mapIdentifier NAME
+syn keyword mapIdentifier OFFSET OFFSITE OUTLINECOLOR OVERLAYBACKGROUNDCOLOR OVERLAYCOLOR OVERLAYMAXSIZE OVERLAYMINSIZE OVERLAYOUTLINECOLOR OVERLAYSIZE OVERLAYSYMBOL
+syn keyword mapIdentifier PARTIALS POINTS POSITION POSTLABELCACHE PROCESSING
+syn keyword mapIdentifier REQUIRES RESOLUTION
+syn keyword mapIdentifier SCALE SHADOWCOLOR SHADOWSIZE SHAPEPATH SIZE SIZEUNITS STATUS STYLEITEM SYMBOLSCALE SYMBOLSET
+syn keyword mapIdentifier TABLE TEMPLATE TEMPLATEPATTERN TEXT TILEINDEX TILEITEM TITLE TO TOLERANCE TOLERANCEUNITS TRANSFORM TRANSPARENCY TRANSPAREN[T] TYPE
+syn keyword mapIdentifier UNITS WMS_ABSTRACT WMS_ACCESSCONSTRAINTS WMS_ONLINERESOURCE WMS_SRS WMS_TITLE WRAP
+
+" General keywords third order
+syn keyword mapKeyword ANNOTATION AUTO BEVEL BITMAP BUTT
+syn keyword mapKeyword CARTOLINE CC CIRCLE CL CR CSV DD DEFAULT
+syn keyword mapKeyword ELLIPSE EMBED FALSE FEET GIANT HILITE INCHES
+syn keyword mapKeyword KILOMETERS LARGE LC LINE LL LR
+syn keyword mapKeyword MEDIUM METERS MILES MITER MULTIPLE MYGIS NORMAL
+syn keyword mapKeyword OFF OGR ON ONE-TO-MANY ONE-TO-ONE ORACLESPATIAL
+syn keyword mapKeyword PIXELS PIXMAP POINT POLYGON POSTGIS QUERY RASTER ROUND
+syn keyword mapKeyword SDE SELECTED SIMPLE SINGLE SMALL SQUARE
+syn keyword mapKeyword TINY TRIANGLE TRUE TRUETYPE UC UL UR VECTOR WFS WMS
+
+" keywords for other purposes
+syn keyword mapTypedef SELECTION
+
+" Comment
+syn match mapComment "#.*"
+
+" Strings (single- and double-quote)
+syn region mapString start=+"+ skip=+\\\\\|\\"+ end=+"+
+syn region mapString start=+'+ skip=+\\\\\|\\'+ end=+'+
+
+" Numbers and hexidecimal values
+syn match mapNumber "-\=\<[0-9]*\>"
+syn match mapNumber "\<0x[abcdefABCDEF0-9]*\>"
+
+" Operators
+syn match mapOperator "EQ"
+syn match mapOperator "[><|\=&!$/\\()\[\]]"
+
+
+" Define the default highlighting.
+" 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
+if version >= 508 || !exists("did_map_syn_inits")
+ if version < 508
+ let did_map_syn_inits = 1
+ command -nargs=+ HiLink hi link <args>
+ else
+ command -nargs=+ HiLink hi def link <args>
+ endif
+
+ HiLink mapComment Comment
+ HiLink mapKeyword Keyword
+ HiLink mapIdentifier Identifier
+ HiLink mapDefine Define
+ HiLink mapTypedef Typedef
+ HiLink mapNumber Number
+ HiLink mapString String
+ HiLink mapOperator Operator
+
+ delcommand HiLink
+endif
+
+let b:current_syntax = "map"
+
+" vim: ts=8
Property changes on: trunk/docs/_static/map.vim
___________________________________________________________________
Name: svn:mergeinfo
+
Copied: trunk/docs/_static/map_fold.vim (from rev 8368, trunk/docs/development/editing/map_fold.vim)
===================================================================
--- trunk/docs/_static/map_fold.vim (rev 0)
+++ trunk/docs/_static/map_fold.vim 2008-12-31 20:21:15 UTC (rev 8369)
@@ -0,0 +1,54 @@
+" Vim folding mode for UMN MapServer .map files
+" Author: Schuyler Erle <schuyler at nocat.net>
+" Last Change: 2006 May 04
+" Version: 1.0
+" Based on an indent folding mode by Jorrit Wiersma and Max Ischenko
+"
+" To use, copy to your ~/.vim directory and then add the following
+" to your .vimrc:
+"
+" autocmd BufRead *.map source ~/.vim/map_fold.vim
+
+setlocal foldmethod=expr
+setlocal foldexpr=GetMapFileFold(v:lnum)
+setlocal foldtext=MapFileFoldText()
+highlight Folded term=bold ctermfg=white ctermbg=black
+
+function! GetMapFileFold(lnum)
+ " If it's a group statement, fold one level
+ let line = getline(a:lnum)
+
+ if line =~ '\c^\s*\(CLASS\|JOIN\|LABEL\|LAYER\|LEGEND\|METADATA\|OUTPUTFORMAT\|PROJECTION\|QUERYMAP\|REFERENCE\|SCALEBAR\|STYLE\|SYMBOL\|WEB\)\s*\(#.*\)*$'
+ return "a1"
+ endif
+
+ " if it's an END, unfold one level
+ if line =~ '\c^\s*END\s*\(#.*\)*$'
+ return "s1"
+ endif
+
+ " otherwise...
+ return "="
+endfunction
+
+function! MapFileFoldText()
+ let line = getline(v:foldstart)
+ let line3 = substitute(line, '\t', ' ', 'g')
+ let line2 = substitute(line3, '^\( *\)', '&+ ', '')
+
+ let i = v:foldstart
+ let name = ""
+ while i < v:foldend
+ let iline = getline(i)
+ if iline =~ '\c^\s*\(NAME\|EXPRESSION\)\s\s*'
+ let name = substitute(iline, '\c\s*\(NAME\|EXPRESSION\)\s*', '', '')
+ break
+ endif
+ let i = i + 1
+ endwhile
+ if name != ""
+ let line2 = line2 . " " . name
+ endif
+ return line2 . " "
+endfunction
+
Property changes on: trunk/docs/_static/map_fold.vim
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: trunk/docs/development/editing/map.vim
===================================================================
--- trunk/docs/development/editing/map.vim 2008-12-31 17:58:42 UTC (rev 8368)
+++ trunk/docs/development/editing/map.vim 2008-12-31 20:21:15 UTC (rev 8369)
@@ -1,99 +0,0 @@
-" Vim syntax file
-" Language: map (umn mapserver config file)
-" Maintainer: Andreas Hirner <andreas.hirner at dlr.de>
-" Last Change: $Date: 2004/05/25 19:19:37 $
-" Filenames: *.map
-" Note: The definitions below are taken from TextPad syntax definitions (*.syn) by Chris Thorne (thorne at dmsolutions.ca) as of May 2004, for version 4.0 MapServer
-
-" For version 5.x: Clear all syntax items
-" For version 6.x: Quit when a syntax file was already loaded
-if version < 600
- syntax clear
-elseif exists("b:current_syntax")
- finish
-endif
-
-" Always ignore case
-syn case ignore
-
-" General keywords first order
-syn keyword mapDefine CLASS END JOIN LABEL LAYER LEGEND MAP METADATA OUTPUTFORMAT
-syn keyword mapDefine PROJECTION QUERYMAP REFERENCE SCALEBAR STYLE SYMBOL WEB
-
-" General keywords second order
-syn keyword mapIdentifier ALPHACOLOR ANGLE ANTIALIAS
-syn keyword mapIdentifier BACKGROUNDCOLOR BACKGROUNDSHADOWCOLOR BACKGROUNDSHADOWSIZE BUFFER
-syn keyword mapIdentifier CHARACTER CLASSITEM COLOR CONNECTION CONNECTIONTYPE
-syn keyword mapIdentifier DATA DATAPATTERN DEBUG DRIVER DUMP
-syn keyword mapIdentifier EMPTY ERROR EXPRESSION EXTENSION EXTENT
-syn keyword mapIdentifier FEATURE FILLED FILTER FILTERITEM FONT FONTSET FOOTER FORCE FORMATOPTION FROM
-syn keyword mapIdentifier GAP GRATICULE GRID GROUP HEADER
-syn keyword mapIdentifier IMAGE IMAGECOLOR IMAGEMODE IMAGEPATH IMAGEQUALITY IMAGETYPE IMAGEURL INDEX INTERLACE INTERVALS
-syn keyword mapIdentifier KEYIMAGE KEYSIZE KEYSPACING
-syn keyword mapIdentifier LABELANGLEITEM LABELCACHE LABELFORMAT LABELITEM LABELMAXSCALE LABELMINSCALE LABELREQUIRES LABELSIZEITEM LATLON LINECAP LINEJOIN LINEJOINMAXSIZE LOG
-syn keyword mapIdentifier MARKER MARKERSIZE MAXARCS MAXBOXSIZE MAXFEATURES MAXINTERVAL MAXSCALE MAXSIZE MAXSUBDIVIDE MAXTEMPLATE MIMETYPE
-syn keyword mapIdentifier MINARCS MINBOXSIZE MINDISTANCE MINFEATURESIZE MININTERVAL MINSCALE MINSIZE MINSUBDIVIDE MINTEMPLATE
-syn keyword mapIdentifier NAME
-syn keyword mapIdentifier OFFSET OFFSITE OUTLINECOLOR OVERLAYBACKGROUNDCOLOR OVERLAYCOLOR OVERLAYMAXSIZE OVERLAYMINSIZE OVERLAYOUTLINECOLOR OVERLAYSIZE OVERLAYSYMBOL
-syn keyword mapIdentifier PARTIALS POINTS POSITION POSTLABELCACHE PROCESSING
-syn keyword mapIdentifier REQUIRES RESOLUTION
-syn keyword mapIdentifier SCALE SHADOWCOLOR SHADOWSIZE SHAPEPATH SIZE SIZEUNITS STATUS STYLEITEM SYMBOLSCALE SYMBOLSET
-syn keyword mapIdentifier TABLE TEMPLATE TEMPLATEPATTERN TEXT TILEINDEX TILEITEM TITLE TO TOLERANCE TOLERANCEUNITS TRANSFORM TRANSPARENCY TRANSPAREN[T] TYPE
-syn keyword mapIdentifier UNITS WMS_ABSTRACT WMS_ACCESSCONSTRAINTS WMS_ONLINERESOURCE WMS_SRS WMS_TITLE WRAP
-
-" General keywords third order
-syn keyword mapKeyword ANNOTATION AUTO BEVEL BITMAP BUTT
-syn keyword mapKeyword CARTOLINE CC CIRCLE CL CR CSV DD DEFAULT
-syn keyword mapKeyword ELLIPSE EMBED FALSE FEET GIANT HILITE INCHES
-syn keyword mapKeyword KILOMETERS LARGE LC LINE LL LR
-syn keyword mapKeyword MEDIUM METERS MILES MITER MULTIPLE MYGIS NORMAL
-syn keyword mapKeyword OFF OGR ON ONE-TO-MANY ONE-TO-ONE ORACLESPATIAL
-syn keyword mapKeyword PIXELS PIXMAP POINT POLYGON POSTGIS QUERY RASTER ROUND
-syn keyword mapKeyword SDE SELECTED SIMPLE SINGLE SMALL SQUARE
-syn keyword mapKeyword TINY TRIANGLE TRUE TRUETYPE UC UL UR VECTOR WFS WMS
-
-" keywords for other purposes
-syn keyword mapTypedef SELECTION
-
-" Comment
-syn match mapComment "#.*"
-
-" Strings (single- and double-quote)
-syn region mapString start=+"+ skip=+\\\\\|\\"+ end=+"+
-syn region mapString start=+'+ skip=+\\\\\|\\'+ end=+'+
-
-" Numbers and hexidecimal values
-syn match mapNumber "-\=\<[0-9]*\>"
-syn match mapNumber "\<0x[abcdefABCDEF0-9]*\>"
-
-" Operators
-syn match mapOperator "EQ"
-syn match mapOperator "[><|\=&!$/\\()\[\]]"
-
-
-" Define the default highlighting.
-" 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
-if version >= 508 || !exists("did_map_syn_inits")
- if version < 508
- let did_map_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink mapComment Comment
- HiLink mapKeyword Keyword
- HiLink mapIdentifier Identifier
- HiLink mapDefine Define
- HiLink mapTypedef Typedef
- HiLink mapNumber Number
- HiLink mapString String
- HiLink mapOperator Operator
-
- delcommand HiLink
-endif
-
-let b:current_syntax = "map"
-
-" vim: ts=8
Deleted: trunk/docs/development/editing/map_fold.vim
===================================================================
--- trunk/docs/development/editing/map_fold.vim 2008-12-31 17:58:42 UTC (rev 8368)
+++ trunk/docs/development/editing/map_fold.vim 2008-12-31 20:21:15 UTC (rev 8369)
@@ -1,54 +0,0 @@
-" Vim folding mode for UMN MapServer .map files
-" Author: Schuyler Erle <schuyler at nocat.net>
-" Last Change: 2006 May 04
-" Version: 1.0
-" Based on an indent folding mode by Jorrit Wiersma and Max Ischenko
-"
-" To use, copy to your ~/.vim directory and then add the following
-" to your .vimrc:
-"
-" autocmd BufRead *.map source ~/.vim/map_fold.vim
-
-setlocal foldmethod=expr
-setlocal foldexpr=GetMapFileFold(v:lnum)
-setlocal foldtext=MapFileFoldText()
-highlight Folded term=bold ctermfg=white ctermbg=black
-
-function! GetMapFileFold(lnum)
- " If it's a group statement, fold one level
- let line = getline(a:lnum)
-
- if line =~ '\c^\s*\(CLASS\|JOIN\|LABEL\|LAYER\|LEGEND\|METADATA\|OUTPUTFORMAT\|PROJECTION\|QUERYMAP\|REFERENCE\|SCALEBAR\|STYLE\|SYMBOL\|WEB\)\s*\(#.*\)*$'
- return "a1"
- endif
-
- " if it's an END, unfold one level
- if line =~ '\c^\s*END\s*\(#.*\)*$'
- return "s1"
- endif
-
- " otherwise...
- return "="
-endfunction
-
-function! MapFileFoldText()
- let line = getline(v:foldstart)
- let line3 = substitute(line, '\t', ' ', 'g')
- let line2 = substitute(line3, '^\( *\)', '&+ ', '')
-
- let i = v:foldstart
- let name = ""
- while i < v:foldend
- let iline = getline(i)
- if iline =~ '\c^\s*\(NAME\|EXPRESSION\)\s\s*'
- let name = substitute(iline, '\c\s*\(NAME\|EXPRESSION\)\s*', '', '')
- break
- endif
- let i = i + 1
- endwhile
- if name != ""
- let line2 = line2 . " " . name
- endif
- return line2 . " "
-endfunction
-
Modified: trunk/docs/development/editing/vim.txt
===================================================================
--- trunk/docs/development/editing/vim.txt 2008-12-31 17:58:42 UTC (rev 8368)
+++ trunk/docs/development/editing/vim.txt 2008-12-31 20:21:15 UTC (rev 8369)
@@ -99,5 +99,5 @@
somehow useful to anybody out there. If there are any questions or suggestions,
please feel free to contact me.
-.. _`map.vim`: map.vim
-.. _`map_fold.vim`: map_fold.vim
+.. _`map.vim`: ../../_static/map.vim
+.. _`map_fold.vim`: ../../_static/map_fold.vim
More information about the mapserver-commits
mailing list