ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

HLSL Syntax

by MattSutherlin ST3

HLSL syntax highlighting for Sublime Text 3

Details

Installs

  • Total 237
  • Win 203
  • OS X 25
  • Linux 9
Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4
Windows 4 2 4 0 0 2 3 3 0 0 0 1 3 1 1 2 2 1 1 2 3 3 1 8 0 1 2 4 1 3 2 2 2 4 1 6 0 1 0 0 6 3 0 2 0
OS X 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 1 0
Linux 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

HLSL_ST3

HLSL syntax highlighting for Sublime Text 3

I'm just trying to provide a better, more fully featured syntax definition for HLSL.

A large part of that is hooking up various things to Sublime's symbol indexer, making them work with GoToDefinition. So far I have functions and structs working, and I have function definitions separated from call-sites in an effort to keep the symbol list a little cleaner. The eventual goal is to make everything properly indexed in a way that it's reasonable to create scope-aware autocompletions and really be able to look at Sublime as a real HLSL IDE. And until I finally get there, I'm just hoping to provide people with a better HLSL writing experience.

This works best when all of your shared shader source is in your active sublime-project file. Then GoToDefinition will work across everything in the project. Otherwise it will only work across currently opened files.

Best with my HLSL-centric theme, Rocklobster: https://github.com/MattSutherlin/RockLobster_ST3Theme