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

HLSL Syntax

by MattSutherlin ST3

HLSL syntax highlighting for Sublime Text 3

Details

  • 1.2.2
  • github.​com
  • github.​com
  • 6 months ago
  • 53 minutes ago
  • 7 months ago

Installs

  • Total 358
  • Win 306
  • OS X 40
  • Linux 12
Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2
Windows 1 2 4 1 2 1 4 3 3 1 3 0 2 3 1 2 1 3 1 0 3 3 1 5 5 5 2 1 0 2 1 0 0 3 6 1 0 4 5 3 3 2 1 2 2 3
OS X 0 0 0 0 0 0 0 0 0 0 0 1 1 0 3 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 2 0 0 0 1 0 0 0
Linux 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 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 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