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

One thought on “GLF | language.nbs

Leave a comment