Skip to main content

sublime-syntax language server

Project description

sublime-syntax-language-server

readthedocs pre-commit.ci status github/workflow codecov DeepSource

github/downloads github/downloads/latest github/issues github/issues-closed github/issues-pr github/issues-pr-closed github/discussions github/milestones github/forks github/stars github/watchers github/contributors github/commit-activity github/last-commit github/release-date

github/license github/languages github/languages/top github/directory-file-count github/code-size github/repo-size github/v

pypi/status pypi/v pypi/downloads pypi/format pypi/implementation pypi/pyversions

Language server and vim plugin for sublime-syntax and syntax-test's scope names.

sublime-syntax is a subtype of yaml. See json schema to get support of yaml language server.

  • document hover
  • completion
  • diagnostic: requires syntest

For vim plugin:

  • ftplugin: commentstring, etc
  • compilers: bat, syntest
  • syntax highlight, include incorrect header

Document Hover

Document Hover

Completion

Completion

Diagnostic

Diagnostic

Compilers

Install

  • syntest for syntax_test_*
  • bat for *.sublime-syntax

syntest

Build From Source

git clone --depth=1 https://github.com/trishume/syntect
cd syntect
cargo build --release --example syntest
sudo install -D target/release/examples/syntest -t /usr/local/bin

For Archlinux

yay -S syntest

Syntax Highlight

Every syntax test file should have a correct header. If you input a typo, syntax highlight will tell you:

Correct

Incorrect

If you input correct keyword of sublime syntax file, it will be highlighted as Keyword. Note watch should be match and strings should be string:

Keyword

More usages

:help sublime-syntax

Vim Plugin

You can use branch release to avoid downloading unnecessary files for vim plugin. Such as for dein.vim:

call dein#add('Freed-Wu/sublime-syntax-language-server', {
      \ 'rev': 'release',
      \ })

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sublime-syntax-language-server-0.0.4.tar.gz (50.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file sublime-syntax-language-server-0.0.4.tar.gz.

File metadata

File hashes

Hashes for sublime-syntax-language-server-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6c2de056c8c931c700e6fc5dc15ebf0cd4e7f35f91080a6b8cb801310023cb3b
MD5 d5ae747e74353f635780617b96a4c822
BLAKE2b-256 400e8c6ea966a52e5848ef28ec2077fbab3f839cb4445f514be04a29dde83033

See more details on using hashes here.

File details

Details for the file sublime_syntax_language_server-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for sublime_syntax_language_server-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8acb79eeeb4c2a14c37a2cf7a7950f5939d383a8b6114c955ef30b2a41fdb8ea
MD5 a46c1d9280abae9ac28360ffe7a6a622
BLAKE2b-256 457e62f8eb01e9aa5e5b1b96be8c1da881bedb275259898f42f2fb8758310f6d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page