-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
content update and expression refactoring
* german quotes, new countries * generator for title/quality overview * support more than 4 news choices * prepare helpers for translation analysis * variable expression refactoring including validation * single quote strings for availability script attribute * unify title/nickname for roles and persons, id->guid * custom lexer for quote handling * configurable duplicate language string validation
- Loading branch information
Showing
32 changed files
with
1,080 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
org.tvtower.db.ui/src/org/tvtower/db/ui/contentassist/CustomDatabaseLexer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.tvtower.db.ui.contentassist; | ||
|
||
import org.antlr.runtime.CharStream; | ||
import org.antlr.runtime.RecognitionException; | ||
import org.antlr.runtime.RecognizerSharedState; | ||
import org.tvtower.db.LexerOverrider; | ||
import org.tvtower.db.ide.contentassist.antlr.internal.InternalDatabaseLexer; | ||
|
||
//lexer overriding adapted from the code I wrote for Xturtle (https://github.com/AKSW/Xturtle/blob/develop/de.itemis.tooling.xturtle/src/de/itemis/tooling/xturtle/CustomXturtleLexer.java) | ||
public class CustomDatabaseLexer extends InternalDatabaseLexer { | ||
|
||
LexerOverrider overrider = new LexerOverrider(); | ||
|
||
public CustomDatabaseLexer() { | ||
super(); | ||
} | ||
|
||
public CustomDatabaseLexer(CharStream input) { | ||
this(input, new RecognizerSharedState()); | ||
} | ||
|
||
public CustomDatabaseLexer(CharStream input, RecognizerSharedState state) { | ||
super(input, state); | ||
|
||
} | ||
|
||
@Override | ||
public void mTokens() throws RecognitionException { | ||
if (overrider.override(input, state)) { | ||
// done | ||
} else { | ||
super.mTokens(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.