Move out objc highlighting attempts
This commit is contained in:
parent
f1e5e6fbff
commit
3a604c83b7
6 changed files with 0 additions and 882 deletions
|
|
@ -107,7 +107,6 @@ var modesByName = {
|
|||
lua: ["Lua" , "lua"],
|
||||
luapage: ["LuaPage" , "lp"], // http://keplerproject.github.com/cgilua/manual.html#templates
|
||||
markdown: ["Markdown" , "md|markdown"],
|
||||
objectivec: ["Objective-C/C++" , "m"],
|
||||
ocaml: ["OCaml" , "ml|mli"],
|
||||
perl: ["Perl" , "pl|pm"],
|
||||
pgsql: ["pgSQL" , "pgsql"],
|
||||
|
|
@ -188,7 +187,6 @@ var docs = {
|
|||
"docs/lua.lua": "Lua",
|
||||
"docs/luapage.lp": "LuaPage",
|
||||
"docs/markdown.md": {name: "Markdown", wrapped: true},
|
||||
"docs/objectivec.m": "Objective-C",
|
||||
"docs/ocaml.ml": "OCaml",
|
||||
"docs/OpenSCAD.scad": "OpenSCAD",
|
||||
"docs/perl.pl": "Perl",
|
||||
|
|
|
|||
|
|
@ -1,104 +0,0 @@
|
|||
@protocol Printing: someParent
|
||||
-(void) print;
|
||||
@end
|
||||
|
||||
@interface Fraction: NSObject <Printing, NSCopying> {
|
||||
int numerator;
|
||||
int denominator;
|
||||
}
|
||||
@end
|
||||
|
||||
@"blah\8" @"a\222sd\d" @"\faw\"\? \' \4 n\\" @"\56"
|
||||
@"\xSF42"
|
||||
|
||||
-(NSDecimalNumber*)addCount:(id)addObject{
|
||||
|
||||
return [count decimalNumberByAdding:addObject.count];
|
||||
|
||||
}
|
||||
|
||||
NS_DURING NS_HANDLER NS_ENDHANDLER
|
||||
|
||||
@try {
|
||||
if (argc > 1) {
|
||||
@throw [NSException exceptionWithName:@"Throwing a test exception" reason:@"Testing the @throw directive." userInfo:nil];
|
||||
}
|
||||
}
|
||||
@catch (id theException) {
|
||||
NSLog(@"%@", theException);
|
||||
result = 1 ;
|
||||
}
|
||||
@finally {
|
||||
NSLog(@"This always happens.");
|
||||
result += 2 ;
|
||||
}
|
||||
|
||||
@synchronized(lock) {
|
||||
NSLog(@"Hello World");
|
||||
}
|
||||
|
||||
struct { @defs( NSObject) }
|
||||
|
||||
char *enc1 = @encode(int);
|
||||
|
||||
IBOutlet|IBAction|BOOL|SEL|id|unichar|IMP|Class
|
||||
|
||||
|
||||
@class @protocol
|
||||
|
||||
@public
|
||||
// instance variables
|
||||
@package
|
||||
// instance variables
|
||||
@protected
|
||||
// instance variables
|
||||
@private
|
||||
// instance variables
|
||||
|
||||
YES NO Nil nil
|
||||
NSApp()
|
||||
NSRectToCGRect (Protocol ProtocolFromString:"NSTableViewDelegate"))
|
||||
|
||||
[SPPoint pointFromCGPoint:self.position]
|
||||
|
||||
NSRoundDownToMultipleOfPageSize
|
||||
|
||||
#import <stdio.h>
|
||||
|
||||
int main( int argc, const char *argv[] ) {
|
||||
printf( "hello world\n" );
|
||||
return 0;
|
||||
}
|
||||
|
||||
NSChangeSpelling
|
||||
|
||||
@"0 != SUBQUERY(image, $x, 0 != SUBQUERY($x.bookmarkItems, $y, $y.@count == 0).@count).@count"
|
||||
|
||||
@selector(lowercaseString) @selector(uppercaseString:)
|
||||
|
||||
NSFetchRequest *localRequest = [[NSFetchRequest alloc] init];
|
||||
localRequest.entity = [NSEntityDescription entityForName:@"VNSource" inManagedObjectContext:context];
|
||||
localRequest.sortDescriptors = [NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:@"resolution" ascending:YES]];
|
||||
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"0 != SUBQUERY(image, $x, 0 != SUBQUERY($x.bookmarkItems, $y, $y.@count == 0).@count).@count"];
|
||||
[NSPredicate predicateWithFormat:]
|
||||
NSString *predicateString = [NSString stringWithFormat:@"SELF beginsWith[cd] %@", searchString];
|
||||
NSPredicate *pred = [NSPredicate predicateWithFormat:predicateString];
|
||||
NSArray *filteredKeys = [[myMutableDictionary allKeys] filteredArrayUsingPredicate:pred];
|
||||
|
||||
localRequest.predicate = [NSPredicate predicateWithFormat:@"whichChart = %@" argumentArray: listChartToDownload];
|
||||
localRequest.fetchBatchSize = 100;
|
||||
arrayRequest = [context executeFetchRequest:localRequest error:&error1];
|
||||
|
||||
[localRequest release];
|
||||
|
||||
#ifndef Nil
|
||||
#define Nil __DARWIN_NULL /* id of Nil class */
|
||||
#endif
|
||||
|
||||
@implementation MyObject
|
||||
- (unsigned int)areaOfWidth:(unsigned int)width
|
||||
height:(unsigned int)height
|
||||
{
|
||||
return width*height;
|
||||
}
|
||||
@end
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Distributed under the BSD license:
|
||||
*
|
||||
* Copyright (c) 2012, Ajax.org B.V.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * Neither the name of Ajax.org B.V. nor the
|
||||
* names of its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
*
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/*
|
||||
THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
|
||||
*/
|
||||
|
||||
define(function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var Tokenizer = require("../tokenizer").Tokenizer;
|
||||
var ObjectiveCHighlightRules = require("./objectivec_highlight_rules").ObjectiveCHighlightRules;
|
||||
|
||||
var Mode = function() {
|
||||
var highlighter = new ObjectiveCHighlightRules();
|
||||
|
||||
this.$tokenizer = new Tokenizer(highlighter.getRules());
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
(function() {
|
||||
// Extra logic goes here. (see below)
|
||||
}).call(Mode.prototype);
|
||||
|
||||
exports.Mode = Mode;
|
||||
});
|
||||
File diff suppressed because one or more lines are too long
167
tool/chrome.css
167
tool/chrome.css
|
|
@ -1,167 +0,0 @@
|
|||
.ace-chrome .ace_editor {
|
||||
border: 2px solid rgb(159, 159, 159);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_editor.ace_focus {
|
||||
border: 2px solid #327fbd;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_gutter {
|
||||
background: #ebebeb;
|
||||
color: #333;
|
||||
overflow : hidden;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_print_margin {
|
||||
width: 1px;
|
||||
background: #e8e8e8;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_text-layer {
|
||||
}
|
||||
|
||||
.ace-chrome .ace_cursor {
|
||||
border-left: 2px solid black;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_cursor.ace_overwrite {
|
||||
border-left: 0px;
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_invisible {
|
||||
color: rgb(191, 191, 191);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_constant.ace_buildin {
|
||||
color: rgb(88, 72, 246);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_constant.ace_language {
|
||||
color: rgb(88, 92, 246);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_constant.ace_library {
|
||||
color: rgb(6, 150, 14);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_invalid {
|
||||
background-color: rgb(153, 0, 0);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_fold {
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_support.ace_function {
|
||||
color: rgb(60, 76, 114);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_support.ace_constant {
|
||||
color: rgb(6, 150, 14);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_support.ace_type,
|
||||
.ace-chrome .ace_line .ace_support.ace_class {
|
||||
color: rgb(109, 121, 222);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_variable.ace_parameter {
|
||||
font-style:italic;
|
||||
color:#FD971F;
|
||||
}
|
||||
.ace-chrome .ace_line .ace_keyword.ace_operator {
|
||||
color: rgb(104, 118, 135);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_comment {
|
||||
color: #236e24;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_comment.ace_doc {
|
||||
color: #236e24;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_comment.ace_doc.ace_tag {
|
||||
color: #236e24;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_constant.ace_numeric {
|
||||
color: rgb(0, 0, 205);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_variable {
|
||||
color: rgb(49, 132, 149);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_xml_pe {
|
||||
color: rgb(104, 104, 91);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_entity.ace_name.ace_function {
|
||||
color: #0000A2;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_markup.ace_markupine {
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_markup.ace_heading {
|
||||
color: rgb(12, 7, 255);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_markup.ace_list {
|
||||
color:rgb(185, 6, 144);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_marker-layer .ace_selection {
|
||||
background: rgb(181, 213, 255);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_marker-layer .ace_step {
|
||||
background: rgb(252, 255, 0);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_marker-layer .ace_stack {
|
||||
background: rgb(164, 229, 101);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_marker-layer .ace_bracket {
|
||||
margin: -1px 0 0 -1px;
|
||||
border: 1px solid rgb(192, 192, 192);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_marker-layer .ace_active_line {
|
||||
background: rgba(0, 0, 0, 0.07);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_gutter_active_line {
|
||||
background-color : #dcdcdc;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_marker-layer .ace_selected_word {
|
||||
background: rgb(250, 250, 255);
|
||||
border: 1px solid rgb(200, 200, 250);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_storage,
|
||||
.ace-chrome .ace_line .ace_keyword,
|
||||
.ace-chrome .ace_meta.ace_tag {
|
||||
color: rgb(147, 15, 128);
|
||||
}
|
||||
|
||||
.ace-chrome .ace_string.ace_regex {
|
||||
color: rgb(255, 0, 0)
|
||||
}
|
||||
|
||||
.ace-chrome .ace_line .ace_string{
|
||||
color: #1A1AA6;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_entity.ace_other.ace_attribute-name{
|
||||
color: #994409;
|
||||
}
|
||||
|
||||
.ace-chrome .ace_indent-guide {
|
||||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
||||
}
|
||||
137
tool/github.css
137
tool/github.css
|
|
@ -1,137 +0,0 @@
|
|||
/* CSS style content from github's default pygments highlighter template.
|
||||
Cursor and selection styles from textmate.css. */
|
||||
.ace-github .ace_editor {
|
||||
color: #333;
|
||||
background-color: #F8F8F8;
|
||||
border: 1px solid #CCC;
|
||||
font: 13px 'Bitstream Vera Sans Mono', Courier, monospace !important;
|
||||
line-height: 19px !important;
|
||||
overflow: auto;
|
||||
padding: 6px 10px;
|
||||
border-radius: 3px;
|
||||
position: relative;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.ace-github .ace_gutter {
|
||||
background: #e8e8e8;
|
||||
color: #AAA;
|
||||
}
|
||||
|
||||
.ace-github .ace_scroller {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.ace-github .ace_keyword {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ace-github .ace_string {
|
||||
color: #D14;
|
||||
}
|
||||
|
||||
.ace-github .ace_variable.ace_class {
|
||||
color: teal;
|
||||
}
|
||||
|
||||
.ace-github .ace_constant.ace_numeric {
|
||||
color: #099;
|
||||
}
|
||||
|
||||
.ace-github .ace_constant.ace_buildin {
|
||||
color: #0086B3;
|
||||
}
|
||||
|
||||
.ace-github .ace_support.ace_function {
|
||||
color: #0086B3;
|
||||
}
|
||||
|
||||
.ace-github .ace_comment {
|
||||
color: #998;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.ace-github .ace_variable.ace_language {
|
||||
color: #0086B3;
|
||||
}
|
||||
|
||||
.ace-github .ace_paren {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ace-github .ace_boolean {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ace-github .ace_string.ace_regexp {
|
||||
color: #009926;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.ace-github .ace_variable.ace_instancce {
|
||||
color: teal;
|
||||
}
|
||||
|
||||
.ace-github .ace_constant.ace_language {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ace-github .ace_text-layer {
|
||||
}
|
||||
|
||||
.ace-github .ace_cursor {
|
||||
border-left: 2px solid black;
|
||||
}
|
||||
|
||||
.ace-github .ace_cursor.ace_overwrite {
|
||||
border-left: 0px;
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
.ace-github .ace_marker-layer .ace_active_line {
|
||||
background: rgb(255, 255, 204);
|
||||
}
|
||||
.ace-github .ace_marker-layer .ace_selection {
|
||||
background: rgb(181, 213, 255);
|
||||
}
|
||||
.ace-github.multiselect .ace_selection.start {
|
||||
box-shadow: 0 0 3px 0px white;
|
||||
border-radius: 2px;
|
||||
}
|
||||
/* bold keywords cause cursor issues for some fonts */
|
||||
/* this disables bold style for editor and keeps for static highlighter */
|
||||
.ace-github.ace_editor .ace_line > span {
|
||||
font-weight: normal !important;
|
||||
}
|
||||
|
||||
.ace-github .ace_marker-layer .ace_step {
|
||||
background: rgb(252, 255, 0);
|
||||
}
|
||||
|
||||
.ace-github .ace_marker-layer .ace_stack {
|
||||
background: rgb(164, 229, 101);
|
||||
}
|
||||
|
||||
.ace-github .ace_marker-layer .ace_bracket {
|
||||
margin: -1px 0 0 -1px;
|
||||
border: 1px solid rgb(192, 192, 192);
|
||||
}
|
||||
|
||||
.ace-github .ace_gutter_active_line{
|
||||
background-color : rgba(0, 0, 0, 0.07);
|
||||
}
|
||||
|
||||
.ace-github .ace_marker-layer .ace_selected_word {
|
||||
background: rgb(250, 250, 255);
|
||||
border: 1px solid rgb(200, 200, 250);
|
||||
|
||||
}
|
||||
|
||||
.ace-github .ace_print_margin {
|
||||
width: 1px;
|
||||
background: #e8e8e8;
|
||||
}
|
||||
|
||||
.ace-github .ace_indent-guide {
|
||||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue