From 01103c44c04a10c2f1a507f6d318abd041f22437 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Wed, 4 Jan 2012 23:19:19 +0100 Subject: [PATCH] Added BBEdit/TextWrangler syntax highlighting module by Mike Thomson --- contrib/BBEdit-TextWrangler.txt | 5 ++ contrib/OpenSCAD.plist | 119 ++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 contrib/BBEdit-TextWrangler.txt create mode 100644 contrib/OpenSCAD.plist diff --git a/contrib/BBEdit-TextWrangler.txt b/contrib/BBEdit-TextWrangler.txt new file mode 100644 index 00000000..e15a9804 --- /dev/null +++ b/contrib/BBEdit-TextWrangler.txt @@ -0,0 +1,5 @@ +BBEdit: +Install OpenSCAD.plist into ~/Library/Application Support/BBEdit/Language Modules + +TextWrangler: +Install OpenSCAD.plist into ~/Library/Application Support/TextWrangler/Language Modules diff --git a/contrib/OpenSCAD.plist b/contrib/OpenSCAD.plist new file mode 100644 index 00000000..2f8860ca --- /dev/null +++ b/contrib/OpenSCAD.plist @@ -0,0 +1,119 @@ + + + + + BBEditDocumentType + CodelessLanguageModule + BBLMCanSpellCheckCodeRuns + + BBLMColorsSyntax + + BBLMIsCaseSensitive + + BBLMKeywordList + + ! + # + $fa + $fn + $fs + $t + % + * + assign + center + circle + color + cube + cylinder + difference + echo + for + function + hull + if + import_dxf + import_stl + include + intersection + intersection_for + linear_extrude + minkowski + mirror + module + multmatrix + polygon + polyhedron + projection + render + rotate + rotate_extrude + scale + sphere + square + str + surface + translate + union + use + + BBLMLanguageCode + Oscd + BBLMLanguageDisplayName + OpenSCAD + BBLMScansFunctions + + BBLMSuffixMap + + + BBLMLanguageSuffix + .scad + + + BBLMSupportsTextCompletion + + Language Features + + Close Block Comments + */ + Close Parameter Lists + ) + Close Statement Blocks + } + Close Strings 1 + " + Close Strings 2 + ' + End-of-line Ends Strings 1 + + End-of-line Ends Strings 2 + + Escape Char in Strings 1 + + Escape Char in Strings 2 + + Identifier and Keyword Characters + !$%*0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz + Open Block Comments + /* + Open Line Comments + // + Open Parameter Lists + ( + Open Statement Blocks + { + Open Strings 1 + " + Open Strings 2 + ' + Prefix for Functions + function + Prefix for Procedures + module + Terminator for Prototypes 1 + + Terminator for Prototypes 2 + + + +