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 2K
  • Win 1K
  • OS X 185
  • Linux 68
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 Sep 3 Sep 2 Sep 1 Aug 31
Windows 1 1 3 3 2 1 2 2 4 2 1 2 2 3 5 4 2 2 4 3 0 0 3 4 2 0 6 2 3 1 1 1 2 4 1 1 4 1 2 1 0 2 1 2 2 1
OS X 0 0 0 0 0 1 0 0 0 0 0 0 0 2 2 0 0 1 0 0 0 1 0 1 0 1 0 2 0 1 0 0 1 0 0 0 0 1 1 0 1 0 0 0 1 0
Linux 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 0 0 0 0 0 0 1 1 0 1 0 0 0 1 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

HLSL_ST3

HLSL tools for Sublime Text 3

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

A large part of that is the syntax file, where the goal is to hook as much as possile into Sublime's symbol indexer in the most correct, most granular way possible. Functions (and function-esque macros) will link between defintions and call sites in both directions, via GoTo Defintion and GoTo Reference. Structs link from usage to definition, via GoTo Definition. Most everything else will at least get scoped for theme coloration, but more universal coverage towards scope-aware autocompletions is a (long-term) work in progress.

Additionally:

  • Right clicking include directives to open the referenced file is now supported. By default, it will attempt to open relative to the same directory as the incuding file, but user settings allow additional include paths to be provided.
  • Hovering intrinsics will open a popup with a link to MSDN documentation.

Everything works best when your shader source is in an active sublime-project file. Otherwise, some features may only work across open files instead of all of your files.

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