Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2249)

Unified Diff: bower_components/google-code-prettify/src/lang-n.js

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: bower_components/google-code-prettify/src/lang-n.js
diff --git a/bower_components/google-code-prettify/src/lang-n.js b/bower_components/google-code-prettify/src/lang-n.js
deleted file mode 100644
index 33cf116420c55ec93ee8b9e9d3f4adb3be14d3e2..0000000000000000000000000000000000000000
--- a/bower_components/google-code-prettify/src/lang-n.js
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (C) 2011 Zimin A.V.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-
-/**
- * @fileoverview
- * Registers a language handler for the Nemerle language.
- * http://nemerle.org
- * @author Zimin A.V.
- */
-(function () {
- // http://nemerle.org/wiki/index.php?title=Base_keywords
- var keywords = 'abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|'
- + 'fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|'
- + 'null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|'
- + 'syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|'
- + 'assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|'
- + 'otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield';
-
- PR['registerLangHandler'](PR['createSimpleLexer'](
- // shortcutStylePatterns
- [
- [PR['PR_STRING'], /^(?:\'(?:[^\\\'\r\n]|\\.)*\'|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, '"'],
- [PR['PR_COMMENT'], /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/, null, '#'],
- [PR['PR_PLAIN'], /^\s+/, null, ' \r\n\t\xA0']
- ],
- // fallthroughStylePatterns
- [
- [PR['PR_STRING'], /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null],
- [PR['PR_STRING'], /^<#(?:[^#>])*(?:#>|$)/, null],
- [PR['PR_STRING'], /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, null],
- [PR['PR_COMMENT'], /^\/\/[^\r\n]*/, null],
- [PR['PR_COMMENT'], /^\/\*[\s\S]*?(?:\*\/|$)/, null],
- [PR['PR_KEYWORD'], new RegExp('^(?:' + keywords + ')\\b'), null],
- [PR['PR_TYPE'], /^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/, null],
- [PR['PR_LITERAL'], /^@[a-z_$][a-z_$@0-9]*/i, null],
- [PR['PR_TYPE'], /^@[A-Z]+[a-z][A-Za-z_$@0-9]*/, null],
- [PR['PR_PLAIN'], /^'?[A-Za-z_$][a-z_$@0-9]*/i, null],
- [PR['PR_LITERAL'], new RegExp(
- '^(?:'
- // A hex number
- + '0x[a-f0-9]+'
- // or an octal or decimal number,
- + '|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)'
- // possibly in scientific notation
- + '(?:e[+\\-]?\\d+)?'
- + ')'
- // with an optional modifier like UL for unsigned long
- + '[a-z]*', 'i'), null, '0123456789'],
-
- [PR['PR_PUNCTUATION'], /^.[^\s\w\.$@\'\"\`\/\#]*/, null]
- ]),
- ['n', 'nemerle']);
-})();
« no previous file with comments | « bower_components/google-code-prettify/src/lang-mumps.js ('k') | bower_components/google-code-prettify/src/lang-pascal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698