GLF | language.nbs

Following is the default code present in the language.nbs file generated, when you try to add new Language Support.

# code folding
FOLD:Block

# navigator support
NAVIGATOR:WhileStatement: {
display_name: "$ConditionalExpression$";
}

# brace completion
COMPLETE "{:}"
COMPLETE "(:)"

# brace matching
BRACE "{:}"
BRACE "(:)"

# indentation support
INDENT "{:}"
INDENT "(:)"
INDENT "\\s*(((if|while)\\s*\\(|else\\s*|else\\s+if\\s*\\(|for\\s*\\(.*\\))[^{;]*)"

# error highlighting
MARK:ERROR: {
type:"Error";
message:"Syntax error.";
}
MARK:error: {
type:"Error";
message:"Unexpected character.";
}

# code completion
COMPLETION:keyword, operator, identifier, whitespace: {
text1:"while";
text2:"if";
text3:"else";
}

For further reading, refer to http://wiki.netbeans.org/GLFTutorial

Advertisements

One thought on “GLF | language.nbs

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s