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 684
  • Win 589
  • OS X 70
  • Linux 25
Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5
Windows 3 1 2 1 3 1 0 2 1 0 2 3 1 1 0 1 1 2 1 4 1 4 1 0 2 4 3 2 2 3 2 2 1 3 2 1 0 0 0 2 2 1 1 2 1 2
OS X 0 1 0 0 0 0 2 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 2 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 2 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0

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