I noticed that in my YAML syntax file I have highlighting for binary, octal, 
hexadecimal and sexagesimal but no decimal number highlighting. Attached patch 
fixes this.

PS: Is it the right way to send patches if I am maintainer of this file?
# HG changeset patch
# User ZyX <[email protected]>
# Date 1286535139 -14400
# Node ID ce3ebbbff144914a1a666a0ce9f1c3e319ed6099
# Parent  fae782ef63dd77e2130473e53a787e91297b338f
Added forgotten detection of normal decimal numbers

diff -r fae782ef63dd -r ce3ebbbff144 runtime/syntax/yaml.vim
--- a/runtime/syntax/yaml.vim	Thu Sep 30 21:47:56 2010 +0200
+++ b/runtime/syntax/yaml.vim	Fri Oct 08 14:52:19 2010 +0400
@@ -2,7 +2,7 @@
 " Language:         YAML (YAML Ain't Markup Language) 1.2
 " Maintainer:       Nikolai Pavlov <[email protected]>
 " First author:     Nikolai Weibull <[email protected]>
-" Latest Revision:  2010-09-16
+" Latest Revision:  2010-10-08
 
 if exists('b:current_syntax')
     finish
@@ -124,7 +124,7 @@
 
 syn match   yamlTimestamp /\%([\[\]{}, \...@!\p\)\@<!\%(\d\{4}-\d\d\=-\d\d\=\%(\%([Tt]\|\s\+\)\%(\d\d\=\):\%(\d\d\):\%(\d\d\)\%(\.\%(\d*\)\)\=\%(\s*\%(Z\|[+-]\d\d\=\%(:\d\d\)\=\)\)\=\)\=\)\%([\[\]{}, \...@!\p\)\...@!/
 
-syn match   yamlInteger /\%([\[\]{}, \...@!\p\)\@<!\%([+-]\=\%(0\%(b[0-1_]\+\|[0-7_]\+\|x[0-9a-fA-F_]\+\)\=\|\%([1-9][0-9_]*\%(:[0-5]\=\d\)\+\)\)\)\%([\[\]{}, \...@!\p\)\...@!/
+syn match   yamlInteger /\%([\[\]{}, \...@!\p\)\@<!\%([+-]\=\%(0\%(b[0-1_]\+\|[0-7_]\+\|x[0-9a-fA-F_]\+\)\=\|\%([1-9][0-9_]*\%(:[0-5]\=\d\)\+\)\)\|[1-9][0-9_]*\)\%([\[\]{}, \...@!\p\)\...@!/
 syn match   yamlFloat   /\%([\[\]{}, \...@!\p\)\@<!\%([+-]\=\%(\%(\d[0-9_]*\)\.[0-9_]*\%([eE][+-]\d\+\)\=\|\.[0-9_]\+\%([eE][-+][0-9]\+\)\=\|\d[0-9_]*\%(:[0-5]\=\d\)\+\.[0-9_]*\|\.\%(inf\|Inf\|INF\)\)\|\%(\.\%(nan\|NaN\|NAN\)\)\)\%([\[\]{}, \...@!\p\)\...@!/
 
 execute 'syn match yamlNodeTag '.string(s:c_ns_tag_property)

Attachment: signature.asc
Description: This is a digitally signed message part.

Raspunde prin e-mail lui