alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

jEdit example source code file (antlr.xml)

This example jEdit source code file (antlr.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - jEdit tags/keywords

begin, end, keyword1, keyword1, keyword2, keyword2, literal2, property, seq, span, span, type, type, value

The jEdit antlr.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MODE SYSTEM "xmode.dtd">

<!--
        This mode file describes the ANTLR syntax definition language.
        It is derived from and tested with the ANTLR syntax rules specified in
        antlr.g included with the ANTLR distribution.
        
        Portions of this file from java.xml.
        
        Author: Brant Gurganus <brantgurga@users.sourceforge.net>
-->
<MODE>
        <PROPS>
                <PROPERTY NAME="commentStart" VALUE="/*" />
                <PROPERTY NAME="commentEnd" VALUE="*/" />
                <PROPERTY NAME="lineComment" VALUE="//" />
                <PROPERTY NAME="wordBreakChars" VALUE="" />
        </PROPS>
        <RULES>
		<SPAN TYPE="COMMENT2" DELEGATE="java::JAVADOC">
			<BEGIN>/**
			<END>*/
		</SPAN>
                <SPAN TYPE="COMMENT1">
                        <BEGIN>/*
                        <END>*/
                </SPAN>
                <EOL_SPAN TYPE="COMMENT1">//
                <SPAN TYPE="LITERAL1" ESCAPE="\">
                        <BEGIN>"
                        <END>"
                </SPAN>
                <SPAN TYPE="LITERAL1" ESCAPE="\">
                        <BEGIN>'
                        <END>'
                </SPAN>
                <SEQ TYPE="OPERATOR">|
                <SEQ TYPE="OPERATOR">:
                <KEYWORDS>
                        <KEYWORD3>header
                        <KEYWORD3>options
                        <KEYWORD3>tokens
                        <KEYWORD1>abstract
			<KEYWORD1>break
			<KEYWORD1>case
			<KEYWORD1>catch
			<KEYWORD1>continue
			<KEYWORD1>default
			<KEYWORD1>do
			<KEYWORD1>else
			<KEYWORD1>extends
			<KEYWORD1>final
			<KEYWORD1>finally
			<KEYWORD1>for
			<KEYWORD1>if
			<KEYWORD1>implements
			<KEYWORD1>instanceof
			<KEYWORD1>native
			<KEYWORD1>new
			<KEYWORD1>private
			<KEYWORD1>protected
			<KEYWORD1>public
			<KEYWORD1>return
			<KEYWORD1>static
			<KEYWORD1>switch
			<KEYWORD1>synchronized
			<KEYWORD1>throw
			<KEYWORD1>throws
			<KEYWORD1>transient
			<KEYWORD1>try
			<KEYWORD1>volatile
			<KEYWORD1>while
			<KEYWORD1>package
			<KEYWORD1>import

			<KEYWORD2>boolean
			<KEYWORD2>byte
			<KEYWORD2>char
			<KEYWORD2>class
			<KEYWORD2>double
			<KEYWORD2>float
			<KEYWORD2>int
			<KEYWORD2>interface
			<KEYWORD2>long
			<KEYWORD2>short
			<KEYWORD2>void

			<FUNCTION>assert
			<KEYWORD1>strictfp

			<LITERAL2>false
			<LITERAL2>null
			<LITERAL2>super
			<LITERAL2>this
			<LITERAL2>true

			<INVALID>goto
			<INVALID>const
                </KEYWORDS>
	</RULES>
</MODE>

Other jEdit examples (source code examples)

Here is a short list of links related to this jEdit antlr.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.