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