Comments (4)
Note: This will break the tests for bash due to new "local" keywords
Original comment by [email protected]
on 30 Nov 2007 at 9:02
from code-prettify.
Here's the starter patch to support Lua. I patched the bash block to handle
the new
local keyword. Only thing left to do is add test case. HTML contains some
test code
I snatched from http://lua-users.org/wiki for giggles.
Enjoy!
Original comment by [email protected]
on 30 Nov 2007 at 9:29
Attachments:
from code-prettify.
Note: I felt as if I needed to hack at the 'END'PLN blah tokens to make the
test case
work, please let me know if it was all done correctly.
Original comment by [email protected]
on 30 Nov 2007 at 9:30
from code-prettify.
Since LUA has a very different lexical grammar than most of the other
languages, I
did it as a language extension. See the usage comment in
http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lua.j
s
Please also see the testcase at
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#is
sue24
I've never written a line of LUA, so that's based on my quick reading of
chapter 2 of
the language reference. Please let me know if it's all mucked up.
Original comment by [email protected]
on 5 Jul 2008 at 11:53
- Changed state: Fixed
from code-prettify.
Related Issues (20)
- Add support for Chapel? HOT 2
- [Feature Request] Add diff / patch highlighting support for StackExchange websites. HOT 1
- Add support for Idris
- No GitHub wiki
- Add support for Perl6 HOT 1
- How to use `Google Code Prettifier` to VBA macro in Microsoft Excel ?
- Add support for AppleScript HOT 1
- White space indentation added on Firefox when using linenums class
- Performance problem with "Hit Test" in Chrome HOT 1
- Wrong highlighting on stackoverflow.com vba if default is used HOT 1
- Extra white-space appears on the first line HOT 1
- XSS risks?
- Request: terraform / hcl language support HOT 2
- Golang run-on string when backticks appear to be escaped
- Makefile: is it really supported?
- Request support of ChoiceScript language
- Added 'record' among Java keywords
- How auto justify codes?
- Request support for DigitalMicrograph Scripting language (DM-script)
- Add support to MiniZinc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code-prettify.