1
# The contents of this file are subject to the terms of the Common Development
2
# and Distribution License (the License). You may not use this file except in
3
# compliance with the License.
5
# You can obtain a copy of the License at http://www.netbeans.org/cddl.html
6
# or http://www.netbeans.org/cddl.txt.
8
# When distributing Covered Code, include this CDDL Header Notice in each file
9
# and include the License file at http://www.netbeans.org/cddl.txt.
10
# If applicable, add the following below the CDDL Header, with the fields
11
# enclosed by brackets [] replaced by your own identifying information:
12
# "Portions Copyrighted [year] [name of copyright owner]"
14
# The Original Software is NetBeans. The Initial Developer of the Original
15
# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
16
# Microsystems, Inc. All Rights Reserved.
18
########### tokens #############################################################
20
TOKEN:comment: ([" " "\t"]* "#" [^"\n" "\r"]*)
21
#<AFTER_INDENT>:TOKEN:comment: ("#" [^"\n" "\r"]*):<DEFAULT>
23
TOKEN:whitespace: ( " "* ["\n" "\r"]+)
24
TOKEN:indent: ( [" " "\t"]* ):<AFTER_INDENT>
25
TOKEN:sequence: ( "-" [^"\n" "\r"]*)
26
<AFTER_INDENT>:TOKEN:sequence: ( "-" [^"\n" "\r" "#"]*):<DEFAULT>
27
TOKEN:key: ( [^"\n" "\r" " " "\t" ":"]* ":"):<AFTER_KEY>
28
<AFTER_INDENT>:TOKEN:key: ( [^"\n" "\r" " " "\t" ":"]* ":"):<AFTER_KEY>
29
<AFTER_KEY>:TOKEN:value:( [^"\n" "\r" "#"]+):<DEFAULT>
30
<AFTER_KEY>:TOKEN:whitespace:( [" " "\t"]* ["\n" "\r"]):<DEFAULT>
31
<AFTER_KEY>:TOKEN:comment:( [" " "\t"]* "#" [^"\n" "\r"]*):<DEFAULT>
34
mimeType:"text/x-ruby";
35
start:( "<%" ("=")? );
37
background_color:"#EEEEBB";
42
default_coloring: "keyword";
46
default_coloring: "default";
49
foreground_color: "0x098618";
57
Item2 = MapKey [MapValue];
58
Item2 = SequenceValue;
62
SequenceValue = <sequence>;
65
removeSimple:"!Collection,Item,Item2,Indent,MapKey,MapValue,SequenceValue";
66
process:org.netbeans.modules.languages.yaml.YAML.parse;
72
display_name: org.netbeans.modules.languages.yaml.YAML.itemName;