Skip to content

Commit

Permalink
Add support for Java-CPG module in report viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmaisch committed Apr 2, 2024
1 parent 1acd991 commit 7946823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions report-viewer/src/model/Language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ enum ParserLanguage {
EMF_METAMODEL = 'EMF metamodel',
EMF_MODEL = 'EMF models (dynamically created token set)',
GO = 'Go Parser',
JAVA_CPG = 'Java CPG Module'
KOTLIN = 'Kotlin Parser',
R_LANG = 'R Parser',
RUST = 'Rust Language Module',
Expand Down
1 change: 1 addition & 0 deletions report-viewer/src/utils/CodeHighlighter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function getHighlightLanguage(lang: Language) {
hljs.registerLanguage('typescript', typescript)
return 'typescript'
case ParserLanguage.JAVA:
case ParserLanguage.JAVA_CPG:
default:
return 'java'
}
Expand Down

0 comments on commit 7946823

Please sign in to comment.