-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0803c2e
commit bd33263
Showing
8 changed files
with
105 additions
and
29 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
17 changes: 17 additions & 0 deletions
17
src/main/kotlin/org/ton/intellij/tact/highlighting/TactHighlightingLexer.kt
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,17 @@ | ||
package org.ton.intellij.tact.highlighting | ||
|
||
import com.intellij.lexer.LayeredLexer | ||
import com.intellij.lexer.StringLiteralLexer | ||
import org.ton.intellij.tact.psi.TactElementTypes | ||
|
||
class TactHighlightingLexer : LayeredLexer(TactLexer()) { | ||
init { | ||
registerLayer( | ||
StringLiteralLexer( | ||
'"', | ||
TactElementTypes.STRING_LITERAL | ||
) | ||
) | ||
|
||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/org/ton/intellij/tact/highlighting/TactLexer.kt
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,6 @@ | ||
package org.ton.intellij.tact.highlighting | ||
|
||
import com.intellij.lexer.FlexAdapter | ||
import org.ton.intellij.tact.parser._TactLexer | ||
|
||
class TactLexer : FlexAdapter(_TactLexer()) |
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