Skip to content

virzz/zed-ext-splunk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splunk SPL Zed Extension

Language support for Splunk Search Processing Language (SPL) files.

Features

  • File types: .spl, .splunk, .splunk-spl
  • Tree-sitter grammar supplied by the sibling tree-sitter-splunk project
  • Highlight queries for commands, functions, fields, literals, operators, macros, and structural clauses
  • Bracket matching, indentation, outline, syntax scopes, and Vim text objects

Local Installation

In Zed, run zed: install dev extension and select this repository. After changes, reinstall the dev extension. Inspect Zed.log with zed: open log, or launch zed --foreground for verbose diagnostics.

The grammar currently uses ../tree-sitter-splunk through a local file:// URL. Zed resolves the configured Git revision, so create the initial grammar commit before installing the dev extension; uncommitted grammar changes are not loaded through rev = "main".

Development

Validate grammar changes in the sibling project:

cd ../tree-sitter-splunk
bun install
bun run check

Validate Zed query and editor behavior by reinstalling this repository as a dev extension. When publishing, replace the local grammar URL with the public HTTPS grammar repository and pin [grammars.splunk].rev to a tested commit SHA.

References

About

Splunk SPL Zed Extension: Language support for Splunk Search Processing Language (SPL) files

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors