Skip to content

Commit

Permalink
feat: replace HtmlHighlightingLexer with HtmlLexer
Browse files Browse the repository at this point in the history
  • Loading branch information
cvette committed Apr 13, 2024
1 parent b865c14 commit a2a91ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ pluginName = neos-intellij-plugin
pluginVersion = 1.20.1

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 231.1
pluginSinceBuild = 233.*
pluginUntilBuild = 241.*

platformType = IU
platformVersion = 2023.1.6
platformVersion = 2023.3
platformDownloadSources = true

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22IntelliLang
platformPlugins = org.intellij.intelliLang,com.intellij.css,com.jetbrains.hackathon.indices.viewer:1.23,PsiViewer:231-SNAPSHOT,yaml,java,java-i18n,properties,com.jetbrains.php:231.9414.10
grammarKitVersion = 2022.3.1
platformPlugins = org.intellij.intelliLang,com.intellij.css,com.jetbrains.hackathon.indices.viewer:1.25,PsiViewer:233.2,yaml,java,java-i18n,properties,com.jetbrains.php:233.11799.300
grammarKitVersion = 2022.3.2
jFlexVersion = 1.9.0

javaVersion = 17
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.vette.idea.neos.lang.afx.parser;

import com.intellij.lexer.HtmlHighlightingLexer;

Check failure on line 3 in src/main/java/de/vette/idea/neos/lang/afx/parser/AfxHighlightingLexer.java

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Usage of API marked for removal

'com.intellij.lexer.HtmlHighlightingLexer' is deprecated and marked for removal

Check warning on line 3 in src/main/java/de/vette/idea/neos/lang/afx/parser/AfxHighlightingLexer.java

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unused import

Unused import `import com.intellij.lexer.HtmlHighlightingLexer;`
import com.intellij.lexer.HtmlLexer;
import com.intellij.lexer.LayeredLexer;

public class AfxHighlightingLexer extends LayeredLexer {
Expand All @@ -9,9 +10,11 @@ public AfxHighlightingLexer() {
}
}

class BaseAfxHighlightingLexer extends HtmlHighlightingLexer {
class BaseAfxHighlightingLexer extends HtmlLexer {


public BaseAfxHighlightingLexer() {
super(new InnerAfxLexer(), true, null);
super(new InnerAfxLexer(), true, true);
}

protected boolean isHtmlTagState(int state) {
Expand Down

0 comments on commit a2a91ca

Please sign in to comment.