Skip to content

Commit bff2d58

Browse files
authored
chatviewtextprocessor: fix Go syntax highlighting (#3080)
Signed-off-by: Jared Van Bortel <[email protected]>
1 parent ebda914 commit bff2d58

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gpt4all-chat/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
99
### Fixed
1010
- Fix models.json cache location ([#3052](https://github.com/nomic-ai/gpt4all/pull/3052))
1111
- Fix LocalDocs regressions caused by docx change ([#3079](https://github.com/nomic-ai/gpt4all/pull/3079))
12+
- Fix Go code being highlighted as Java ([#3080](https://github.com/nomic-ai/gpt4all/pull/3080))
1213

1314
## [3.4.0] - 2024-10-08
1415

gpt4all-chat/src/chatviewtextprocessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ void SyntaxHighlighter::highlightBlock(const QString &text)
738738
case Java:
739739
rules = javaHighlightingRules(); break;
740740
case Go:
741-
rules = javaHighlightingRules(); break;
741+
rules = goHighlightingRules(); break;
742742
case Json:
743743
rules = jsonHighlightingRules(); break;
744744
case Latex:

0 commit comments

Comments
 (0)