claude-code - 💡(How to fix) Fix [BUG] No syntax highlighting for GDScript (.gd) files [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48181Fetched 2026-04-15 06:30:53
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

GDScript (.gd) files have no syntax highlighting in code blocks and diffs. All GDScript code appears as plain white text. Other languages (TypeScript, Python, Rust) are highlighted correctly in the same session.

What Should Happen?

GDScript code should have syntax highlighting (keywords, strings, numbers, types colored) similar to other supported languages.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code CLI in iTerm2
  2. Ask Claude to create/edit a .gd file and a .ts file
  3. Compare the diff output — .ts has colors, .gd is plain white

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Unknown

Claude Code Version

2.1.108

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

Code in same session: <img width="512" height="368" alt="Image" src="https://github.com/user-attachments/assets/e76fa00b-30a8-4984-970e-7b4c7d5adc0c" />

Screenshot from some old version with working highlight: <img width="494" height="184" alt="Image" src="https://github.com/user-attachments/assets/db3b6c8b-4140-4769-b8e2-27aa8a42ea83" />

extent analysis

TL;DR

The issue can likely be resolved by updating the language configuration or syntax highlighting rules for GDScript in Claude Code.

Guidance

  • Verify that GDScript is recognized as a supported language in the current version of Claude Code (2.1.108) and check for any specific settings or configurations that might be overriding the default syntax highlighting behavior.
  • Compare the syntax highlighting configuration for GDScript with other languages like TypeScript, which are working correctly, to identify any discrepancies.
  • Check the release notes or documentation for version 2.1.108 to see if there were any changes to syntax highlighting or language support that might be related to this issue.
  • If possible, try reverting to a previous version of Claude Code where GDScript syntax highlighting was working to isolate the issue.

Example

No specific code example is provided as the issue seems to be related to configuration or language support rather than a code snippet.

Notes

The exact cause of the issue is unclear without more information about the configuration or internal workings of Claude Code. However, given that this is a regression and worked in a previous version, it suggests a change in the software might be the culprit.

Recommendation

Apply workaround: Since the last working version is unknown and without a clear path to upgrade to a fixed version, the best course of action might be to try and configure or workaround the syntax highlighting for GDScript manually if possible, or wait for further guidance from the developers.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] No syntax highlighting for GDScript (.gd) files [2 comments, 2 participants]