utopia 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.codeclimate.yml +1 -0
- data/.travis.yml +3 -1
- data/Gemfile +2 -0
- data/README.md +2 -2
- data/Rakefile +19 -7
- data/docs/.nojekyll +0 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.apache.css +6 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.applescript.css +5 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.assembly.css +8 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.bash-script.css +6 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.bash.css +10 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.clang.css +3 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.css.css +14 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.diff.css +16 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.html.css +5 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.ocaml.css +3 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.protobuf.css +2 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.python.css +6 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.ruby.css +2 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.brush.xml.css +18 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.core.css +62 -0
- data/docs/_components/jquery-syntax/base/jquery.syntax.editor.css +6 -0
- data/docs/_components/jquery-syntax/base/theme.js +1 -0
- data/docs/_components/jquery-syntax/bright/jquery.syntax.core.css +27 -0
- data/docs/_components/jquery-syntax/bright/theme.js +1 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.apache.js +41 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.applescript.js +57 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.assembly.js +37 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.bash-script.js +67 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.bash.js +33 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.basic.js +51 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.clang.js +89 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.csharp.js +47 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.css.js +80 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.diff.js +24 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.go.js +47 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.haskell.js +45 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.html.js +66 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.io.js +45 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.java.js +45 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.javascript.js +40 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.kai.js +29 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.lisp.js +34 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.lua.js +44 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.nginx.js +31 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.ocaml.js +73 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.ooc.js +46 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.pascal.js +51 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.perl5.js +52 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.php-script.js +48 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.php.js +15 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.plain.js +10 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.protobuf.js +43 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.python.js +44 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.ruby.js +77 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.scala.js +44 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.smalltalk.js +29 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.sql.js +31 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.super-collider.js +57 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.swift.js +55 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.trenni.js +35 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.xml.js +50 -0
- data/docs/_components/jquery-syntax/jquery.syntax.brush.yaml.js +29 -0
- data/docs/_components/jquery-syntax/jquery.syntax.cache.js +65 -0
- data/docs/_components/jquery-syntax/jquery.syntax.core.js +1098 -0
- data/docs/_components/jquery-syntax/jquery.syntax.editor.js +291 -0
- data/docs/_components/jquery-syntax/jquery.syntax.js +258 -0
- data/docs/_components/jquery-syntax/jquery.syntax.min.js +13 -0
- data/docs/_components/jquery-syntax/paper/jquery.syntax.core.css +31 -0
- data/docs/_components/jquery-syntax/paper/theme.js +1 -0
- data/docs/_components/jquery/core.js +482 -0
- data/docs/_components/jquery/jquery.js +10220 -0
- data/docs/_components/jquery/jquery.min.js +4 -0
- data/docs/_components/jquery/jquery.min.map +1 -0
- data/docs/_components/jquery/jquery.slim.js +8107 -0
- data/docs/_components/jquery/jquery.slim.min.js +4 -0
- data/docs/_components/jquery/jquery.slim.min.map +1 -0
- data/docs/_static/icon.png +0 -0
- data/docs/_static/site.css +205 -0
- data/docs/_static/utopia-background.svg +1 -0
- data/docs/_static/utopia.svg +1 -0
- data/docs/code/Utopia.html +511 -0
- data/docs/code/Utopia/Basename.html +654 -0
- data/docs/code/Utopia/Bootstrap.html +538 -0
- data/docs/code/Utopia/Command.html +207 -0
- data/docs/code/Utopia/Command/Environment.html +321 -0
- data/docs/code/Utopia/Command/Server.html +214 -0
- data/docs/code/Utopia/Command/Server/Create.html +222 -0
- data/docs/code/Utopia/Command/Server/Environment.html +236 -0
- data/docs/code/Utopia/Command/Server/Update.html +317 -0
- data/docs/code/Utopia/Command/Setup.html +145 -0
- data/docs/code/Utopia/Command/Setup/Server.html +298 -0
- data/docs/code/Utopia/Command/Setup/Site.html +180 -0
- data/docs/code/Utopia/Command/Site.html +279 -0
- data/docs/code/Utopia/Command/Site/Create.html +324 -0
- data/docs/code/Utopia/Command/Site/Update.html +407 -0
- data/docs/code/Utopia/Command/Top.html +279 -0
- data/docs/code/Utopia/Content.html +826 -0
- data/docs/code/Utopia/Content/Document.html +1818 -0
- data/docs/code/Utopia/Content/Document/State.html +1220 -0
- data/docs/code/Utopia/Content/Link.html +1286 -0
- data/docs/code/Utopia/Content/Links.html +841 -0
- data/docs/code/Utopia/Content/MarkupParser.html +881 -0
- data/docs/code/Utopia/Content/MarkupParser/ParsedTag.html +422 -0
- data/docs/code/Utopia/Content/MarkupParser/UnbalancedTagError.html +615 -0
- data/docs/code/Utopia/Content/Namespace.html +485 -0
- data/docs/code/Utopia/Content/Node.html +1188 -0
- data/docs/code/Utopia/Content/Node/Context.html +938 -0
- data/docs/code/Utopia/Content/Response.html +813 -0
- data/docs/code/Utopia/Content/SymbolicHash.html +419 -0
- data/docs/code/Utopia/Content/Tag.html +399 -0
- data/docs/code/Utopia/Content/Tags.html +136 -0
- data/docs/code/Utopia/Content/Tags/ContentTag.html +187 -0
- data/docs/code/Utopia/Content/Tags/DeferredTag.html +193 -0
- data/docs/code/Utopia/Content/Tags/Library.html +333 -0
- data/docs/code/Utopia/Content/Tags/NodeTag.html +193 -0
- data/docs/code/Utopia/Content/UnbalancedTagError.html +298 -0
- data/docs/code/Utopia/ContentLength.html +339 -0
- data/docs/code/Utopia/Controller.html +901 -0
- data/docs/code/Utopia/Controller/Actions.html +289 -0
- data/docs/code/Utopia/Controller/Actions/Action.html +978 -0
- data/docs/code/Utopia/Controller/Actions/ClassMethods.html +442 -0
- data/docs/code/Utopia/Controller/Base.html +1216 -0
- data/docs/code/Utopia/Controller/Respond.html +283 -0
- data/docs/code/Utopia/Controller/Respond/ClassMethods.html +236 -0
- data/docs/code/Utopia/Controller/Respond/Converter.html +256 -0
- data/docs/code/Utopia/Controller/Respond/Converter/Callback.html +484 -0
- data/docs/code/Utopia/Controller/Respond/Converter/ToJSON.html +375 -0
- data/docs/code/Utopia/Controller/Respond/Passthrough.html +291 -0
- data/docs/code/Utopia/Controller/Respond/Responder.html +529 -0
- data/docs/code/Utopia/Controller/Rewrite.html +290 -0
- data/docs/code/Utopia/Controller/Rewrite/ClassMethods.html +242 -0
- data/docs/code/Utopia/Controller/Rewrite/ExtractPrefixRule.html +364 -0
- data/docs/code/Utopia/Controller/Rewrite/Rewriter.html +464 -0
- data/docs/code/Utopia/Controller/Rewrite/Rule.html +209 -0
- data/docs/code/Utopia/Controller/Variables.html +550 -0
- data/docs/code/Utopia/Controllers.html +244 -0
- data/docs/code/Utopia/Exceptions.html +127 -0
- data/docs/code/Utopia/Exceptions/Handler.html +526 -0
- data/docs/code/Utopia/Exceptions/Mailer.html +476 -0
- data/docs/code/Utopia/Extensions.html +117 -0
- data/docs/code/Utopia/Extensions/ArraySplit.html +183 -0
- data/docs/code/Utopia/Extensions/DateTimeComparison.html +193 -0
- data/docs/code/Utopia/Extensions/TimeDateComparison.html +193 -0
- data/docs/code/Utopia/HTTP.html +244 -0
- data/docs/code/Utopia/HTTP/Status.html +415 -0
- data/docs/code/Utopia/Locale.html +606 -0
- data/docs/code/Utopia/Localization.html +1235 -0
- data/docs/code/Utopia/Localization/Wrapper.html +459 -0
- data/docs/code/Utopia/Logger.html +205 -0
- data/docs/code/Utopia/Logger/CompactFormatter.html +335 -0
- data/docs/code/Utopia/Path.html +3304 -0
- data/docs/code/Utopia/Path/Matcher.html +518 -0
- data/docs/code/Utopia/Path/Matcher/MatchData.html +475 -0
- data/docs/code/Utopia/Redirection.html +145 -0
- data/docs/code/Utopia/Redirection/ClientRedirect.html +717 -0
- data/docs/code/Utopia/Redirection/DirectoryIndex.html +298 -0
- data/docs/code/Utopia/Redirection/Errors.html +470 -0
- data/docs/code/Utopia/Redirection/Moved.html +312 -0
- data/docs/code/Utopia/Redirection/RequestFailure.html +226 -0
- data/docs/code/Utopia/Redirection/Rewrite.html +296 -0
- data/docs/code/Utopia/Session.html +883 -0
- data/docs/code/Utopia/Session/LazyHash.html +859 -0
- data/docs/code/Utopia/Setup.html +964 -0
- data/docs/code/Utopia/Static.html +690 -0
- data/docs/code/Utopia/Static/LocalFile.html +1098 -0
- data/docs/code/Utopia/Static/MimeTypeLoader.html +541 -0
- data/docs/code/Utopia/Static/MimeTypeLoader/ExpansionError.html +124 -0
- data/docs/code/Utopia/Tags.html +115 -0
- data/docs/code/Utopia/Tags/Environment.html +314 -0
- data/docs/code/Utopia/Tags/EnvironmentTag.html +314 -0
- data/docs/code/Utopia/Tags/Library.html +340 -0
- data/docs/code/_index.html +758 -0
- data/docs/code/class_list.html +51 -0
- data/docs/code/css/common.css +1 -0
- data/docs/code/css/full_list.css +58 -0
- data/docs/code/css/style.css +499 -0
- data/docs/code/file.README.html +169 -0
- data/docs/code/file_list.html +56 -0
- data/docs/code/frames.html +17 -0
- data/docs/code/index.html +169 -0
- data/docs/code/js/app.js +248 -0
- data/docs/code/js/full_list.js +216 -0
- data/docs/code/js/jquery.js +4 -0
- data/docs/code/materials/utopia.png +0 -0
- data/docs/code/materials/utopia.svg +1 -0
- data/docs/code/method_list.html +3443 -0
- data/docs/code/top-level-namespace.html +110 -0
- data/docs/index.html +92 -0
- data/docs/wiki.html +92 -0
- data/docs/wiki/bower-integration.html +74 -0
- data/docs/wiki/bower-integration/index.html +74 -0
- data/docs/wiki/development-environment-setup.html +60 -0
- data/docs/wiki/development-environment-setup/index.html +60 -0
- data/docs/wiki/edit.html +103 -0
- data/docs/wiki/faq/what-is-xnode.html +79 -0
- data/docs/wiki/faq/what-is-xnode/index.html +79 -0
- data/docs/wiki/middleware/content.html +64 -0
- data/docs/wiki/middleware/content/index.html +64 -0
- data/docs/wiki/middleware/controller.html +104 -0
- data/docs/wiki/middleware/controller/actions.html +117 -0
- data/docs/wiki/middleware/controller/actions/index.html +117 -0
- data/docs/wiki/middleware/controller/actions/rewrite/index.html +48 -0
- data/docs/wiki/middleware/controller/index.html +104 -0
- data/docs/wiki/middleware/controller/rewrite.html +111 -0
- data/docs/wiki/middleware/controller/rewrite/index.html +111 -0
- data/docs/wiki/middleware/localization.html +59 -0
- data/docs/wiki/middleware/localization/index.html +59 -0
- data/docs/wiki/middleware/redirection.html +61 -0
- data/docs/wiki/middleware/redirection/index.html +61 -0
- data/docs/wiki/middleware/session.html +71 -0
- data/docs/wiki/middleware/session/index.html +71 -0
- data/docs/wiki/middleware/static.html +57 -0
- data/docs/wiki/middleware/static/index.html +57 -0
- data/docs/wiki/server-setup.html +118 -0
- data/docs/wiki/server-setup/index.html +118 -0
- data/docs/wiki/testing.html +59 -0
- data/docs/wiki/testing/index.html +59 -0
- data/docs/wiki/updating-utopia.html +108 -0
- data/docs/wiki/updating-utopia/index.html +108 -0
- data/docs/wiki/your-first-page.html +80 -0
- data/docs/wiki/your-first-page/index.html +80 -0
- data/documentation/Guardfile +0 -12
- data/documentation/Rakefile +3 -0
- data/documentation/pages/_page.xnode +2 -0
- data/documentation/pages/wiki/content.md +1 -0
- data/documentation/pages/wiki/faq/what-is-xnode/content.md +37 -0
- data/documentation/pages/wiki/links.yaml +3 -1
- data/documentation/pages/wiki/server-setup/content.md +1 -1
- data/documentation/pages/wiki/show.xnode +2 -0
- data/documentation/pages/wiki/your-first-page/content.md +1 -1
- data/lib/utopia/command.rb +4 -4
- data/lib/utopia/command/environment.rb +73 -0
- data/lib/utopia/command/server.rb +19 -32
- data/lib/utopia/command/site.rb +26 -9
- data/lib/utopia/content/markup.rb +1 -1
- data/lib/utopia/setup.rb +49 -20
- data/lib/utopia/version.rb +1 -1
- data/setup/site/README.md +6 -7
- data/setup/site/Rakefile +3 -0
- data/setup/site/pages/_page.xnode +1 -1
- data/setup/site/public/_static/site.css +1 -1
- data/setup/site/tasks/bower.rake +3 -6
- data/setup/site/tasks/deploy.rake +1 -1
- data/setup/site/tasks/development.rake +1 -1
- data/setup/site/tasks/environment.rake +2 -2
- data/setup/site/tasks/static.rake +43 -0
- data/spec/utopia/command_spec.rb +170 -0
- data/spec/utopia/setup_spec.rb +20 -142
- metadata +225 -42
- data/documentation/public/_components/jquery-syntax/.sass-cache/040afc1428b286fb3c50151378b349a6149698d3/jquery.syntax.core.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/098642d80a1682613dca2bba6fd0a3bc9fd2bf04/jquery.syntax.layout.editor.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/098642d80a1682613dca2bba6fd0a3bc9fd2bf04/jquery.syntax.layout.fixed.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/098642d80a1682613dca2bba6fd0a3bc9fd2bf04/jquery.syntax.layout.inline.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/098642d80a1682613dca2bba6fd0a3bc9fd2bf04/jquery.syntax.layout.list.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/098642d80a1682613dca2bba6fd0a3bc9fd2bf04/jquery.syntax.layout.plain.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/098642d80a1682613dca2bba6fd0a3bc9fd2bf04/jquery.syntax.layout.table.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/10c58b30c53bf84f8360af8a864797092be26882/jquery.syntax.core.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/10c58b30c53bf84f8360af8a864797092be26882/jquery.syntax.layout.fixed.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/10c58b30c53bf84f8360af8a864797092be26882/jquery.syntax.layout.inline.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/_layout.scssc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.apache.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.applescript.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.assembly.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.bash-script.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.bash.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.clang.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.css.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.diff.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.html.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.ocaml.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.protobuf.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.python.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.ruby.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.brush.xml.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.core.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.editor.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.layout.editor.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.layout.fixed.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.layout.list.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.layout.plain.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/3c69ad94149e2a6d9f4ffda01814fee3947b1389/jquery.syntax.layout.table.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/8638ad407c5ea29f6547cf8ac6983da587354889/master.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/b7ab87e6269b4fe89f9475b7a260077391d3567b/jquery.syntax.layout.editor.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/b7ab87e6269b4fe89f9475b7a260077391d3567b/jquery.syntax.layout.fixed.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/b7ab87e6269b4fe89f9475b7a260077391d3567b/jquery.syntax.layout.inline.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/b7ab87e6269b4fe89f9475b7a260077391d3567b/jquery.syntax.layout.plain.sassc +0 -0
- data/documentation/public/_components/jquery-syntax/.sass-cache/e82f8cf4c8436da086a4506e01ef78755ebab1ce/master.scssc +0 -0
- data/lib/utopia/command/setup.rb +0 -78
@@ -0,0 +1,45 @@
|
|
1
|
+
// brush: "haskell" aliases: []
|
2
|
+
|
3
|
+
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
4
|
+
// Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
|
5
|
+
// See <jquery.syntax.js> for licensing details.
|
6
|
+
|
7
|
+
Syntax.register('haskell', function(brush) {
|
8
|
+
var keywords = ["as", "case", "of", "class", "data", "data family", "data instance", "default", "deriving", "deriving instance", "do", "forall", "foreign", "hiding", "if", "then", "else", "import", "infix", "infixl", "infixr", "instance", "let", "in", "mdo", "module", "newtype", "proc", "qualified", "rec", "type", "type family", "type instance", "where"];
|
9
|
+
|
10
|
+
var operators = ["`", "|", "\\", "-", "-<", "-<<", "->", "*", "?", "??", "#", "<-", "@", "!", "::", "_", "~", ">", ";", "{", "}"];
|
11
|
+
|
12
|
+
var values = ["True", "False"];
|
13
|
+
|
14
|
+
brush.push(values, {klass: 'constant'});
|
15
|
+
brush.push(keywords, {klass: 'keyword'});
|
16
|
+
brush.push(operators, {klass: 'operator'});
|
17
|
+
|
18
|
+
// Camelcase Types
|
19
|
+
brush.push(Syntax.lib.camelCaseType);
|
20
|
+
|
21
|
+
// Comments
|
22
|
+
brush.push({
|
23
|
+
pattern: /\-\-.*$/gm,
|
24
|
+
klass: 'comment',
|
25
|
+
allow: ['href']
|
26
|
+
});
|
27
|
+
|
28
|
+
brush.push({
|
29
|
+
pattern: /\{\-[\s\S]*?\-\}/gm,
|
30
|
+
klass: 'comment',
|
31
|
+
allow: ['href']
|
32
|
+
});
|
33
|
+
|
34
|
+
brush.push(Syntax.lib.webLink);
|
35
|
+
|
36
|
+
// Numbers
|
37
|
+
brush.push(Syntax.lib.decimalNumber);
|
38
|
+
brush.push(Syntax.lib.hexNumber);
|
39
|
+
|
40
|
+
// Strings
|
41
|
+
brush.push(Syntax.lib.singleQuotedString);
|
42
|
+
brush.push(Syntax.lib.doubleQuotedString);
|
43
|
+
brush.push(Syntax.lib.stringEscape);
|
44
|
+
});
|
45
|
+
|
@@ -0,0 +1,66 @@
|
|
1
|
+
// brush: "html" aliases: []
|
2
|
+
|
3
|
+
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
4
|
+
// Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
|
5
|
+
// See <jquery.syntax.js> for licensing details.
|
6
|
+
|
7
|
+
Syntax.brushes.dependency('html', 'xml');
|
8
|
+
Syntax.brushes.dependency('html', 'javascript');
|
9
|
+
Syntax.brushes.dependency('html', 'css');
|
10
|
+
Syntax.brushes.dependency('html', 'php-script');
|
11
|
+
Syntax.brushes.dependency('html', 'ruby');
|
12
|
+
|
13
|
+
Syntax.register('html', function(brush) {
|
14
|
+
brush.push({
|
15
|
+
pattern: /<script.*?type\=.?text\/javascript.*?>((.|\n)*?)<\/script>/gmi,
|
16
|
+
matches: Syntax.extractMatches({brush: 'javascript'})
|
17
|
+
});
|
18
|
+
|
19
|
+
brush.push({
|
20
|
+
pattern: /<style.*?type=.?text\/css.*?>((.|\n)*?)<\/style>/gmi,
|
21
|
+
matches: Syntax.extractMatches({brush: 'css'})
|
22
|
+
});
|
23
|
+
|
24
|
+
brush.push({
|
25
|
+
pattern: /((<\?php)([\s\S]*?)(\?>))/gm,
|
26
|
+
matches: Syntax.extractMatches(
|
27
|
+
{klass: 'php-tag', allow: ['keyword', 'php-script']},
|
28
|
+
{klass: 'keyword'},
|
29
|
+
{brush: 'php-script'},
|
30
|
+
{klass: 'keyword'}
|
31
|
+
)
|
32
|
+
});
|
33
|
+
|
34
|
+
brush.push({
|
35
|
+
pattern: /((<\?rb?)([\s\S]*?)(\?>))/gm,
|
36
|
+
matches: Syntax.extractMatches(
|
37
|
+
{klass: 'ruby-tag', allow: ['keyword', 'ruby']},
|
38
|
+
{klass: 'keyword'},
|
39
|
+
{brush: 'ruby'},
|
40
|
+
{klass: 'keyword'}
|
41
|
+
)
|
42
|
+
});
|
43
|
+
|
44
|
+
brush.push({
|
45
|
+
pattern: /<%=?(.*?)(%>)/g,
|
46
|
+
klass: 'instruction',
|
47
|
+
allow: ['string']
|
48
|
+
});
|
49
|
+
|
50
|
+
brush.push({
|
51
|
+
pattern: /<\!(DOCTYPE(.*?))>/g,
|
52
|
+
matches: Syntax.extractMatches({klass: 'doctype'})
|
53
|
+
});
|
54
|
+
|
55
|
+
// Is this rule still relevant?
|
56
|
+
brush.push({
|
57
|
+
pattern: /(%[0-9a-f]{2})/gi,
|
58
|
+
klass: 'percent-escape',
|
59
|
+
only: ['html']
|
60
|
+
});
|
61
|
+
|
62
|
+
// The position of this statement is important - it determines at what point the rules of the parent are processed.
|
63
|
+
// In this case, the rules for xml are processed after the rules for html.
|
64
|
+
brush.derives('xml');
|
65
|
+
});
|
66
|
+
|
@@ -0,0 +1,45 @@
|
|
1
|
+
// brush: "io" aliases: []
|
2
|
+
|
3
|
+
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
4
|
+
// Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
|
5
|
+
// See <jquery.syntax.js> for licensing details.
|
6
|
+
|
7
|
+
Syntax.register('io', function(brush) {
|
8
|
+
brush.push(Syntax.lib.cStyleFunction);
|
9
|
+
|
10
|
+
var keywords = ["return"];
|
11
|
+
|
12
|
+
var operators = ["::=", ":=", "or", "and", "@", "+", "*", "/", "-", "&", "|", "~", "!", "%", "<", "=", ">", "[", "]", "new", "delete"];
|
13
|
+
|
14
|
+
brush.push(keywords, {klass: 'keywords'});
|
15
|
+
brush.push(operators, {klass: 'operator'});
|
16
|
+
|
17
|
+
// Extract space delimited method invocations
|
18
|
+
brush.push({
|
19
|
+
pattern: /\b([ \t]+([a-z]+))/gi,
|
20
|
+
matches: Syntax.extractMatches({index: 2, klass: 'function'})
|
21
|
+
});
|
22
|
+
|
23
|
+
brush.push({
|
24
|
+
pattern: /\)([ \t]+([a-z]+))/gi,
|
25
|
+
matches: Syntax.extractMatches({index: 2, klass: 'function'})
|
26
|
+
});
|
27
|
+
|
28
|
+
// Objective-C classes
|
29
|
+
brush.push(Syntax.lib.camelCaseType);
|
30
|
+
|
31
|
+
brush.push(Syntax.lib.perlStyleComment);
|
32
|
+
brush.push(Syntax.lib.cStyleComment);
|
33
|
+
brush.push(Syntax.lib.cppStyleComment);
|
34
|
+
brush.push(Syntax.lib.webLink);
|
35
|
+
|
36
|
+
// Strings
|
37
|
+
brush.push(Syntax.lib.singleQuotedString);
|
38
|
+
brush.push(Syntax.lib.doubleQuotedString);
|
39
|
+
brush.push(Syntax.lib.stringEscape);
|
40
|
+
|
41
|
+
// Numbers
|
42
|
+
brush.push(Syntax.lib.decimalNumber);
|
43
|
+
brush.push(Syntax.lib.hexNumber);
|
44
|
+
});
|
45
|
+
|
@@ -0,0 +1,45 @@
|
|
1
|
+
// brush: "java" aliases: []
|
2
|
+
|
3
|
+
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
4
|
+
// Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
|
5
|
+
// See <jquery.syntax.js> for licensing details.
|
6
|
+
|
7
|
+
Syntax.register('java', function(brush) {
|
8
|
+
var keywords = ["abstract", "continue", "for", "switch", "assert", "default", "goto", "synchronized", "do", "if", "break", "implements", "throw", "else", "import", "throws", "case", "enum", "return", "transient", "catch", "extends", "try", "final", "interface", "static", "class", "finally", "strictfp", "volatile", "const", "native", "super", "while"];
|
9
|
+
|
10
|
+
var access = ["private", "protected", "public", "package"];
|
11
|
+
|
12
|
+
var types = ["void", "byte", "short", "int", "long", "float", "double", "boolean", "char"];
|
13
|
+
|
14
|
+
var operators = ["++", "--", "++", "--", "+", "-", "~", "!", "*", "/", "%", "+", "-", "<<", ">>", ">>>", "<", ">", "<=", ">=", "==", "!=", "&", "^", "|", "&&", "||", "?", "=", "+=", "-=", "*=", "/=", "%=", "&=", "^=", "|=", "<<=", ">>=", ">>>=", "instanceof", "new", "delete"];
|
15
|
+
|
16
|
+
var constants = ["this", "true", "false", "null"];
|
17
|
+
|
18
|
+
brush.push(constants, {klass: 'constant'});
|
19
|
+
brush.push(types, {klass: 'type'});
|
20
|
+
brush.push(keywords, {klass: 'keyword'});
|
21
|
+
brush.push(operators, {klass: 'operator'});
|
22
|
+
brush.push(access, {klass: 'access'});
|
23
|
+
|
24
|
+
// Camel Case Types
|
25
|
+
brush.push(Syntax.lib.camelCaseType);
|
26
|
+
|
27
|
+
// Comments
|
28
|
+
brush.push(Syntax.lib.cStyleComment);
|
29
|
+
brush.push(Syntax.lib.cppStyleComment);
|
30
|
+
brush.push(Syntax.lib.webLink);
|
31
|
+
|
32
|
+
// Numbers
|
33
|
+
brush.push(Syntax.lib.decimalNumber);
|
34
|
+
brush.push(Syntax.lib.hexNumber);
|
35
|
+
|
36
|
+
// Strings
|
37
|
+
brush.push(Syntax.lib.singleQuotedString);
|
38
|
+
brush.push(Syntax.lib.doubleQuotedString);
|
39
|
+
brush.push(Syntax.lib.stringEscape);
|
40
|
+
|
41
|
+
brush.push(Syntax.lib.cStyleFunction);
|
42
|
+
|
43
|
+
brush.processes['function'] = Syntax.lib.webLinkProcess('java "Developer Documentation"', true);
|
44
|
+
});
|
45
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
// brush: "javascript" aliases: ["js", "actionscript"]
|
2
|
+
|
3
|
+
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
4
|
+
// Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
|
5
|
+
// See <jquery.syntax.js> for licensing details.
|
6
|
+
|
7
|
+
Syntax.register('javascript', function(brush) {
|
8
|
+
var keywords = ["function", "break", "case", "catch", "continue", "default", "delete", "do", "else", "for", "if", "in", "instanceof", "new", "return", "super", "switch", "throw", "true", "try", "typeof", "var", "while", "with", "prototype"];
|
9
|
+
|
10
|
+
var operators = ["+", "*", "/", "-", "&", "|", "~", "!", "%", "<", "=", ">"];
|
11
|
+
var values = ["this", "true", "false", "null"];
|
12
|
+
|
13
|
+
brush.push(values, {klass: 'constant'});
|
14
|
+
brush.push(keywords, {klass: 'keyword'});
|
15
|
+
brush.push(operators, {klass: 'operator'});
|
16
|
+
|
17
|
+
// Regular expressions
|
18
|
+
brush.push(Syntax.lib.perlStyleRegularExpression);
|
19
|
+
|
20
|
+
// Camel Case Types
|
21
|
+
brush.push(Syntax.lib.camelCaseType);
|
22
|
+
|
23
|
+
// Comments
|
24
|
+
brush.push(Syntax.lib.cStyleComment);
|
25
|
+
brush.push(Syntax.lib.cppStyleComment);
|
26
|
+
brush.push(Syntax.lib.webLink);
|
27
|
+
|
28
|
+
// Strings
|
29
|
+
brush.push(Syntax.lib.singleQuotedString);
|
30
|
+
brush.push(Syntax.lib.doubleQuotedString);
|
31
|
+
brush.push(Syntax.lib.stringEscape);
|
32
|
+
|
33
|
+
// Numbers
|
34
|
+
brush.push(Syntax.lib.decimalNumber);
|
35
|
+
brush.push(Syntax.lib.hexNumber);
|
36
|
+
|
37
|
+
// Functions
|
38
|
+
brush.push(Syntax.lib.cStyleFunction);
|
39
|
+
});
|
40
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// brush: "kai" aliases: []
|
2
|
+
|
3
|
+
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
4
|
+
// Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
|
5
|
+
// See <jquery.syntax.js> for licensing details.
|
6
|
+
|
7
|
+
Syntax.register('kai', function(brush) {
|
8
|
+
brush.push(['(', ')', '[', ']', '{', '}'], {klass: 'operator'});
|
9
|
+
|
10
|
+
brush.push(Syntax.lib.perlStyleComment);
|
11
|
+
|
12
|
+
brush.push(Syntax.lib.decimalNumber);
|
13
|
+
brush.push(Syntax.lib.webLink);
|
14
|
+
|
15
|
+
brush.push({
|
16
|
+
pattern: /\(([^\s\(\)]+)/gi,
|
17
|
+
matches: Syntax.extractMatches({klass: 'function'})
|
18
|
+
});
|
19
|
+
|
20
|
+
brush.push({
|
21
|
+
pattern: /`[a-z]*/gi,
|
22
|
+
klass: 'constant'
|
23
|
+
})
|
24
|
+
|
25
|
+
// Strings
|
26
|
+
brush.push(Syntax.lib.multiLineDoubleQuotedString);
|
27
|
+
brush.push(Syntax.lib.stringEscape);
|
28
|
+
});
|
29
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// brush: "lisp" aliases: ['scheme', 'clojure']
|
2
|
+
|
3
|
+
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
4
|
+
// Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
|
5
|
+
// See <jquery.syntax.js> for licensing details.
|
6
|
+
|
7
|
+
Syntax.lib.lispStyleComment = {pattern: /(;+) .*$/gm, klass: 'comment', allow: ['href']};
|
8
|
+
|
9
|
+
// This syntax is intentionally very sparse. This is because it is a general syntax for Lisp like languages.
|
10
|
+
// It might be a good idea to make specific dialects (e.g. common lisp, scheme, clojure, etc)
|
11
|
+
Syntax.register('lisp', function(brush) {
|
12
|
+
brush.push(['(', ')'], {klass: 'operator'});
|
13
|
+
|
14
|
+
brush.push(Syntax.lib.lispStyleComment);
|
15
|
+
|
16
|
+
brush.push(Syntax.lib.hexNumber);
|
17
|
+
brush.push(Syntax.lib.decimalNumber);
|
18
|
+
brush.push(Syntax.lib.webLink);
|
19
|
+
|
20
|
+
brush.push({
|
21
|
+
pattern: /\(\s*([^\s\(\)]+)/gmi,
|
22
|
+
matches: Syntax.extractMatches({klass: 'function'})
|
23
|
+
});
|
24
|
+
|
25
|
+
brush.push({
|
26
|
+
pattern: /#[a-z]+/gi,
|
27
|
+
klass: 'constant'
|
28
|
+
})
|
29
|
+
|
30
|
+
// Strings
|
31
|
+
brush.push(Syntax.lib.multiLineDoubleQuotedString);
|
32
|
+
brush.push(Syntax.lib.stringEscape);
|
33
|
+
});
|
34
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// brush: "lua" aliases: []
|
2
|
+
|
3
|
+
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
4
|
+
// Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
|
5
|
+
// See <jquery.syntax.js> for licensing details.
|
6
|
+
|
7
|
+
Syntax.register('lua', function(brush) {
|
8
|
+
var keywords = ["and", "break", "do", "else", "elseif", "end", "false", "for", "function", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"];
|
9
|
+
|
10
|
+
var operators = ["+", "-", "*", "/", "%", "^", "#", "..", "=", "==", "~=", "<", ">", "<=", ">=", "?", ":"];
|
11
|
+
|
12
|
+
var values = ["self", "true", "false", "nil"];
|
13
|
+
|
14
|
+
brush.push(values, {klass: 'constant'});
|
15
|
+
brush.push(keywords, {klass: 'keyword'});
|
16
|
+
brush.push(operators, {klass: 'operator'});
|
17
|
+
|
18
|
+
// Camelcase Types
|
19
|
+
brush.push(Syntax.lib.camelCaseType);
|
20
|
+
brush.push(Syntax.lib.cStyleFunction);
|
21
|
+
|
22
|
+
brush.push({
|
23
|
+
pattern: /\-\-.*$/gm,
|
24
|
+
klass: 'comment',
|
25
|
+
allow: ['href']
|
26
|
+
});
|
27
|
+
|
28
|
+
brush.push({
|
29
|
+
pattern: /\-\-\[\[(\n|.)*?\]\]\-\-/gm,
|
30
|
+
klass: 'comment',
|
31
|
+
allow: ['href']
|
32
|
+
});
|
33
|
+
|
34
|
+
// Strings
|
35
|
+
brush.push(Syntax.lib.singleQuotedString);
|
36
|
+
brush.push(Syntax.lib.doubleQuotedString);
|
37
|
+
brush.push(Syntax.lib.stringEscape);
|
38
|
+
|
39
|
+
brush.push(Syntax.lib.hexNumber);
|
40
|
+
brush.push(Syntax.lib.decimalNumber);
|
41
|
+
|
42
|
+
brush.push(Syntax.lib.webLink);
|
43
|
+
});
|
44
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
// brush: "nginx" aliases: []
|
2
|
+
|
3
|
+
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
4
|
+
// Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
|
5
|
+
// See <jquery.syntax.js> for licensing details.
|
6
|
+
|
7
|
+
Syntax.register('nginx', function(brush) {
|
8
|
+
brush.push({
|
9
|
+
pattern: /((\w+).*?);/g,
|
10
|
+
matches: Syntax.extractMatches(
|
11
|
+
{klass: 'directive', allow: '*'},
|
12
|
+
{klass: 'function', process: Syntax.lib.webLinkProcess("http://nginx.org/r/")}
|
13
|
+
)
|
14
|
+
});
|
15
|
+
|
16
|
+
brush.push({
|
17
|
+
pattern: /(\w+).*?{/g,
|
18
|
+
matches: Syntax.extractMatches(
|
19
|
+
{klass: 'keyword'}
|
20
|
+
)
|
21
|
+
});
|
22
|
+
|
23
|
+
brush.push({pattern: /(\$)[\w]+/g, klass: 'variable'});
|
24
|
+
|
25
|
+
brush.push(Syntax.lib.perlStyleComment);
|
26
|
+
brush.push(Syntax.lib.singleQuotedString);
|
27
|
+
brush.push(Syntax.lib.doubleQuotedString);
|
28
|
+
|
29
|
+
brush.push(Syntax.lib.webLink);
|
30
|
+
});
|
31
|
+
|
@@ -0,0 +1,73 @@
|
|
1
|
+
// brush: "ocaml" aliases: ["ml", "sml", "fsharp"]
|
2
|
+
|
3
|
+
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
|
4
|
+
// Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
|
5
|
+
// See <jquery.syntax.js> for licensing details.
|
6
|
+
|
7
|
+
// This brush is based loosely on the following documentation:
|
8
|
+
// http://msdn.microsoft.com/en-us/library/dd233230.aspx
|
9
|
+
|
10
|
+
Syntax.register('ocaml', function(brush) {
|
11
|
+
var keywords = ["abstract", "and", "as", "assert", "begin", "class", "default", "delegate", "do", "done", "downcast", "downto", "elif", "else", "end", "exception", "extern", "finally", "for", "fun", "function", "if", "in", "inherit", "inline", "interface", "internal", "lazy", "let", "match", "member", "module", "mutable", "namespace", "new", "null", "of", "open", "or", "override", "rec", "return", "static", "struct", "then", "to", "try", "type", "upcast", "use", "val", "when", "while", "with", "yield", "asr", "land", "lor", "lsl", "lsr", "lxor", "mod", "sig", "atomic", "break", "checked", "component", "const", "constraint", "constructor", "continue", "eager", "event", "external", "fixed", "functor", "global", "include", "method", "mixin", "object", "parallel", "process", "protected", "pure", "sealed", "trait", "virtual", "volatile", "val"];
|
12
|
+
|
13
|
+
var types = ["bool", "byte", "sbyte", /\bu?int\d*\b/g, "nativeint", "unativeint", "char", "string", "decimal", "unit", "void", "float32", "single", "float64", "double", "list", "array", "exn", "format", "fun", "option", "ref"];
|
14
|
+
|
15
|
+
var operators = ["!", "<>", "%", "&", "*", "+", "-", "->", "/", "::", ":=", ":>", ":?", ":?>", "<", "=", ">", "?", "@", "^", "_", "`", "|", "~", "'", "[<", ">]", "<|", "|>", "[|", "|]", "(|", "|)", "(*", "*)", "in"];
|
16
|
+
|
17
|
+
var values = ["true", "false"];
|
18
|
+
|
19
|
+
var access = ["private", "public"];
|
20
|
+
|
21
|
+
brush.push(access, {klass: 'access'});
|
22
|
+
brush.push(values, {klass: 'constant'});
|
23
|
+
brush.push(types, {klass: 'type'});
|
24
|
+
brush.push(keywords, {klass: 'keyword'});
|
25
|
+
brush.push(operators, {klass: 'operator'});
|
26
|
+
|
27
|
+
// http://caml.inria.fr/pub/docs/manual-ocaml/manual011.html#module-path
|
28
|
+
// open [module-path], new [type]
|
29
|
+
brush.push({
|
30
|
+
pattern: /(?:open|new)\s+((?:\.?[a-z][a-z0-9]*)+)/gi,
|
31
|
+
matches: Syntax.extractMatches({klass: 'type'})
|
32
|
+
});
|
33
|
+
|
34
|
+
// Functions
|
35
|
+
brush.push({
|
36
|
+
pattern: /(?:\.)([a-z_][a-z0-9_]+)/gi,
|
37
|
+
matches: Syntax.extractMatches({klass: 'function'})
|
38
|
+
});
|
39
|
+
|
40
|
+
// Avoid highlighting keyword arguments as camel-case types.
|
41
|
+
brush.push({
|
42
|
+
pattern: /(?:\(|,)\s*(\w+\s*=)/g,
|
43
|
+
matches: Syntax.extractMatches({
|
44
|
+
klass: 'keyword-argument'
|
45
|
+
})
|
46
|
+
});
|
47
|
+
|
48
|
+
// We need to modify cStyleFunction because "(*" is a comment token.
|
49
|
+
brush.push({
|
50
|
+
pattern: /([a-z_][a-z0-9_]*)\s*\((?!\*)/gi,
|
51
|
+
matches: Syntax.extractMatches({klass: 'function'})
|
52
|
+
});
|
53
|
+
|
54
|
+
// Types
|
55
|
+
brush.push(Syntax.lib.camelCaseType);
|
56
|
+
|
57
|
+
// Web Links
|
58
|
+
brush.push(Syntax.lib.webLink);
|
59
|
+
|
60
|
+
// Comments
|
61
|
+
brush.push({
|
62
|
+
pattern: /\(\*[\s\S]*?\*\)/g,
|
63
|
+
klass: 'comment'
|
64
|
+
});
|
65
|
+
|
66
|
+
// Strings
|
67
|
+
brush.push(Syntax.lib.doubleQuotedString);
|
68
|
+
brush.push(Syntax.lib.stringEscape);
|
69
|
+
|
70
|
+
// Numbers
|
71
|
+
brush.push(Syntax.lib.decimalNumber);
|
72
|
+
brush.push(Syntax.lib.hexNumber);
|
73
|
+
});
|