All Projects → viluon → LuaExtended

viluon / LuaExtended

Licence: MIT license
An improved ST3 Lua syntax definition.

Projects that are alternatives of or similar to LuaExtended

sublime-node-snippets
A collection of completions/snippets for node.js v8.x
Stars: ✭ 14 (-26.32%)
Mutual labels:  snippets, sublime-text-3
pymolsnips
Pymolsnips is a library of PyMOL scripting language code fragments for several popular text editors.
Stars: ✭ 19 (+0%)
Mutual labels:  snippets, sublime-text-3
github markdown snippets
GitHub flavored Markdown with plain'ol HTML knowledge! Boom!
Stars: ✭ 23 (+21.05%)
Mutual labels:  snippets, sublime-text-3
Coffeescript Sublime Plugin
Syntax highlighting and checking, commands, shortcuts, snippets, compilation and more.
Stars: ✭ 296 (+1457.89%)
Mutual labels:  snippets, sublime-text-3
network tech
Cisco config syntax and snippets for Sublime Text
Stars: ✭ 82 (+331.58%)
Mutual labels:  snippets, sublime-text-3
Hayaku
Fuzzy abbreviations, support for preprocessors (Sass, Less, Stylus) and a lot of other features in easily configurable set of tools for writing CSS faster
Stars: ✭ 973 (+5021.05%)
Mutual labels:  snippets, sublime-text-3
vim-symfony
Symfony Vim plugin
Stars: ✭ 27 (+42.11%)
Mutual labels:  snippets
node-ts-dedent
TypeScript package which smartly trims and strips indentation from multi-line strings
Stars: ✭ 119 (+526.32%)
Mutual labels:  indentation
simple-recaptcha-v3
🤖 This repository contains simple reCAPTCHA v3 integration for your Laravel application.
Stars: ✭ 25 (+31.58%)
Mutual labels:  snippets
friendly-snippets
Set of preconfigured snippets for different languages.
Stars: ✭ 824 (+4236.84%)
Mutual labels:  snippets
SaneSnippets
Sublime Text snippets optimized for humans, not robots
Stars: ✭ 59 (+210.53%)
Mutual labels:  snippets
ogrep-rs
Outline grep — search in indentation-structured texts (Rust version)
Stars: ✭ 32 (+68.42%)
Mutual labels:  indentation
sublime-fish
A robust Sublime Text syntax package for fish
Stars: ✭ 32 (+68.42%)
Mutual labels:  sublime-text-3
BowieCode
Personal Code/Snippet Library for Unity 3D
Stars: ✭ 23 (+21.05%)
Mutual labels:  snippets
react-cheat-sheet
📚 The perfect React Cheat Sheet for daily use with a lot of Javascript / JSX snippets !
Stars: ✭ 59 (+210.53%)
Mutual labels:  snippets
dimmed
👔 Dimmed Color Theme for Sublime Text 2/3
Stars: ✭ 18 (-5.26%)
Mutual labels:  sublime-text-3
vscode-LaTeX-support
LaTeX language support for Visual Studio Code
Stars: ✭ 17 (-10.53%)
Mutual labels:  snippets
interview-refresh-java-bigdata
a one-stop repo to lookup for code snippets of core java concepts, sql, data structures as well as big data. It also consists of interview questions asked in real-life.
Stars: ✭ 25 (+31.58%)
Mutual labels:  snippets
SublimeDiscordRP
📄 Discord rich presence for Sublime Text
Stars: ✭ 123 (+547.37%)
Mutual labels:  sublime-text-3
sublime-angular-material-snippets
Angular Material Design snippets plugin for Sublime Text 2/3
Stars: ✭ 25 (+31.58%)
Mutual labels:  snippets

What is this?

LuaExtended is a syntax definition and snippet package for Sublime Text 3.

Package Control license GitHub release GitHub stars

Features

As of right now, LuaExtended contains the following improvements over the default Lua package:

  • Indentation of repeat until loops fixed

  • Indentation of table definitions fixed

  • Improved syntax definition structure for easier future work on more fixes

  • error calls have red-highlighted strings

  • Completions include the full standard library, including parameter names with tab stops

  • Completions also include Lua keywords

  • New snippets:

    • New loop snippets (while and repeat)

    • Improved indentation of for snippets, synced variable name tab stops

    • ++ (expands the current line into the form of line = line + 1, ignoring inline comments and whitespace)

    • += and -=

    • dfun, an LDoc-style documented function snippet

    • if, elseif and else

    • if~, if=, and their elseif counterparts, expanding to if x ~= y then ... and similar

    • Most snippets also handle selection, meaning you can e.g. apply while on a block of code which will then become the body of the while loop

  • Function calls (including object method invocations foo:bar() and syntactic sugar like foo { bar }) are highlighted properly

  • Anonymous function definitions are highlighted properly (arguments are formatted)

  • Restructured indent settings

    • do end blocks are indented properly

  • All features are grouped under the source.luae scope, so that they don't interfere with the default Lua package

Installation

You can now use Package Control to install LuaExtended. Simply type "install" in the Command Palette (Ctrl + Shift + P) to find the Package Control: Install Package command. Wait for the repository lists to load

and search for 'LuaExtended'. Alternatively, you can clone this repository into your Data/User folder (either in the install directory, in %appdata%/Sublime Text 3 on Windoze, or wherever else other environments put it).

LuaExtended and Linters

If you are using a SublimeLinter3-based linter such as SublimeLinter-lua, you will need to modify your settings to get LuaExtended linting to work.

Navigate to Preferences > Package Settings

Find SublimeLinter in the list and open its "Settings - User"

The settings file is of the JSON format, so look for the line that says "syntax_map": {

You will need to add a binding that tells SublimeLinter to lint LuaExtended just like Lua. This is done by adding a line that says "luaextended": "lua",. Don't worry about the alphabetical order of the entries, SublimeLinter will sort them on next reload.

And there you go! Try opening a *.luae, *.ext.lua or *.extended.lua file and see whether linting works. If it for some reason doesn't work, read the tutorial again and check that you've followed it to the point. Try restarting Sublime before opening an issue!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].