それマグで!

知識はカップより、マグでゆっくり頂きます。 takuya_1stのブログ

習慣に早くから配慮した者は、 おそらく人生の実りも大きい。

YAMLの構文ファイル

EmEditorYAML形式の表示設定ファイルをずいぶん前に作って放置していた。2年近く放置していたなぁ。PCを変えたときに持っていったので同時にココにも書いておく

; EmEditor Syntax File
;
; To import this file to an existing configuration, select Configuration
; under the Tool menu, select Define Configurations, select a configuration
; you want to import to, press [Properties], select the Highlight page, and
; press [Import].
;
; Submit your customized file to submit@emurasoft.com 
; to be listed in www.emurasoft.com user files pages.
;
#Highlight=on
#BeginTag=
#EndTag=
#CommentBegin=...
#CommentEnd=
#LineComment1=^#
#LineComment2=
#SingleQuote=on
#DoubleQuote=on
#ContinueQuote=off
#Escape=\
#ScriptBegin=
#ScriptEnd=
#SpecialSyntax=off
#HighlightBraces=on

#Keyword color=3,word=off,rightall=off,case=off,insidetag=off,regexp=on,rightall2=off
^#YAML:\S\+
[\| ]- 

#Keyword color=2,word=on,rightall=off,case=on,insidetag=off,regexp=off,rightall2=off
NULL
Null
null
NONE
None
none
NIL
Nil
nil
~

#Keyword color=4,word=off,rightall=off,case=off,insidetag=off,regexp=on,rightall2=off
!\S\+
[\| ]*\S\+
[\| ]&\S\+
(^^| )[a-z|0-9_\.]+[ ]*:

#Keyword color=4,word=on,rightall=off,case=on,insidetag=off,regexp=off,rightall2=off
TRUE
True
true
YES
Yes
yes
ON
On
on
FALSE
False
false
NO
No
no
OFF
Off
off

EmEditorYAML構文ファイルだけど、実際は殆どキーワード定義ばかりだった。YAMLはJSONの上位という位置づけなので、JSONにも使えると思う。