This repository was archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create Makefile.mk * Update Makefile.am * Update syntax for sublime * Add support for generating sublime syntax file * Remove static sublime syntax files * Update load.cpp * Create Sublime_syntax.md
- Loading branch information
David P. Chassin
authored
Jan 13, 2022
1 parent
29b9270
commit 5a127ba
Showing
8 changed files
with
150 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[[/Command/Sublime_syntax]] -- Generates the SublimeText syntax for GLM files | ||
|
||
# Synopsis | ||
|
||
~~~ | ||
bash$ gridlabd --sublime_syntax | ||
~~~ | ||
|
||
# Description | ||
|
||
The `--sublime_syntax` option generates the syntax file required to enable syntax highlighting for GLM files. | ||
|
||
# Example | ||
|
||
The following example generates the syntax file and stores in the current user's package folder for Sublime Text 3. | ||
|
||
~~~ | ||
% gridlabd --sublime_syntax > $(HOME)/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/GLM.sublime-syntax | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SUBLIME_SYNTAX = $(HOME)/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/GLM.sublime-syntax | ||
SUBLIME_SOURCE = utilities/sublime/GLM.sublime-syntax | ||
|
||
sublime-syntax: $(SUBLIME_SYNTAX) | ||
|
||
$(SUBLIME_SYNTAX): gldcore/load.cpp | ||
@echo "Updating sublime syntax" | ||
@gridlabd --sublime_syntax > "$@" || echo "ERROR: you need to install sublime package manager first" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.