Skip to content

Commit

Permalink
Added instructions on building own Autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
eneerge authored Apr 10, 2018
1 parent 2a50b8f commit 44562f7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mIRC-msl.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

/* How to build your own autocompletes:
-----------------------------------
trigger:
- is the triggering word. Sublime does fuzzy matching, so it will match any word in the trigger including description (if provided)
- \t will right align text and italicize
content:
- the text entered when accepting the auto complete
- Can create "tab" stops using ${N:<Text to highlight>}. N starts at 1.
- EG: myCommand(${1:I am an autocomplete}) - this will create "myCommand(I am an autocomplete)" with the "I am an autocomplete" highlighted so it can easily be typed over
Special highlighting rules exist for the following syntaxes:
- ˇOptional [parameter] - highlights "Optional" as a function and [parameter] as a parameter
- ˇRequired <parameter> - highlights "Required" as a function and <parameter> as a parameter
*/
{
"scope": "source.msl - *",

Expand Down

0 comments on commit 44562f7

Please sign in to comment.