The com.Ostermiller.syntax package supports several programming languages.
- Supports Java, C/C++, HTML, LaTeX, SQL, and Java properties. (More can be added with relative ease)
- True lexer support - language syntax specified using JFlex.
- Language specification compliant:
- C/C++ (Test Case)
- Keywords
- Precompiler statements (even those with comments)
- Comments
- Literals
- Integers, Floats, and Doubles
- Characters and Strings (with escape sequences)
- Identifiers
- Operands
- Trigraph escape sequence support
- Error reporting
- Java (Test Case)
- Keywords
- Comments (including documentation comments)
- Literals
- Integers, Floats and Doubles (with bounds checking)
- Characters and Strings (with escape sequences including unicode)
- true, false, and null
- Identifiers
- Operands
- Error reporting
- HTML (Simple Test Case)
- Text
- Character entity references
- Comments
- Scripts
- Tags
- Error reporting
- HTML (Complex Test Case)
- Text
- Character entity references
- Comments
- Scripts
- Tag parts
- Name/value pairs
- Error reporting
- Java Properties (Test Case)
- Name/value pairs
- Values split across multiple lines.
- Comments
- LaTeX (Test Case)
- Commands
- Text
- Operators
- Comments
- Escape Sequences
- SQL (Test Case)
- About 500 keywords.
- Comments including nested comments.
- literals including strings and numbers