Skip to content

feature: add popular themes, and add syntax highlighting for Objectscript within XML files#2

Merged
davem-intersys merged 2 commits intointersystems:mainfrom
hkimura-intersys:v1.3.0
Mar 10, 2026
Merged

feature: add popular themes, and add syntax highlighting for Objectscript within XML files#2
davem-intersys merged 2 commits intointersystems:mainfrom
hkimura-intersys:v1.3.0

Conversation

@hkimura-intersys
Copy link
Copy Markdown
Contributor

@hkimura-intersys hkimura-intersys commented Mar 9, 2026

Overview

Added syntax highlighting for ObjectScript within XML files blocks. Additionally, added popular highlighting themes that users can choose from in Zed.

Testing

Tested that ObjectScript gets highlighted in XML files:

image

Tested the different themes:

  • InterSystems Tokyonight Dark:
image
  • InterSystems Tokyonight Moon:
image
  • InterSystems Solarized Dark:
image
  • InterSystems Solarized Light:
image
  • InterSystems Tokyonight Day:
image
  • InterSystems Tokyonight Light:
image

Details

Added the following themes:

  • solarized-dark
  • solarized-light
  • tokyonight-dark
  • tokyonight-day
  • tokyonight-light
  • tokyonight-moon

To enable syntax highlighting of ObjectScript within XML files, I added the official XML tree-sitter grammar to this extension, and added an injections.scm file that maps blocks to the objectscript playground grammar.

…ript within XML files

Added the following themes:
- solarized-dark
- solarized-light
- tokyonight-dark
- tokyonight-day
- tokyonight-light
- tokyonight-moon

Also, added the official XML grammar to this extension, and injected Implementation blocks
with the objectscript playground grammar. This makes it so the objectscript gets highlighted.
@davem-intersys davem-intersys merged commit 06d40d7 into intersystems:main Mar 10, 2026
@davem-intersys
Copy link
Copy Markdown
Contributor

One note, does this make all XML have ObjectScript coloring? It's actually the 2nd line that makes InterSystems class-definition-as-XML disctinct:

<?xml version="1.0" encoding="UTF-8"?>
<Export generator="IRIS" version="26">

@hkimura-intersys hkimura-intersys deleted the v1.3.0 branch March 23, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants