pointillist 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6fb993d023fd47da7221f9cb130e6e7a91fa4985
4
+ data.tar.gz: 75afda0294d4dc97c64b99bec182845432b719b3
5
+ SHA512:
6
+ metadata.gz: 60c95483a55c5278060dd0ffd2604803e4782bf370c7dc76f93dfcbecc6a03ec0cd9fd3eaf08e3f5652456bab4fe218437247a2a4d85a4ad6833e007e989afde
7
+ data.tar.gz: 0d8f72134cc2e172fa2e70dc6cfc7ae7c2f1275bd8482cf11a3e3d88da17f340ec7ba5443af3cbe9d3b4baf7522d89d4e2ed03cc4bb1d6f8a6a478c2a1f4bef5
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Garen Torikian
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,3 @@
1
+ # Pointillist
2
+
3
+ Convert Atom stylesheets into Pygments-compatible syntax highlighting.
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+ require 'rake/testtask'
4
+
5
+ task :default => :test
6
+
7
+ Rake::TestTask.new do |t|
8
+ t.test_files = FileList['test/**/*_test.rb']
9
+ t.verbose = true
10
+ end
@@ -0,0 +1,2 @@
1
+ CoffeeScript:
2
+ path: coffeescript.json
@@ -0,0 +1 @@
1
+ {"scopeName":"source.coffee","name":"CoffeeScript","fileTypes":["coffee","Cakefile","coffee.erb","cson","_coffee"],"firstLineMatch":"^#!.*\\bcoffee","foldingStartMarker":"^\\s*class\\s+\\S.*$|.*(->|=>)\\s*$|.*[\\[{]\\s*$","foldingStopMarker":"^\\s*$|^\\s*[}\\]]\\s*$","patterns":[{"captures":{"1":{"name":"variable.parameter.function.coffee"},"2":{"name":"storage.type.function.coffee"}},"comment":"match stuff like: a -> … ","match":"(\\([^()]*?\\))\\s*([=-]>)","name":"meta.inline.function.coffee"},{"captures":{"1":{"name":"keyword.operator.new.coffee"},"2":{"name":"entity.name.type.instance.coffee"}},"match":"(new)\\s+(\\w+(?:\\.\\w*)*)","name":"meta.class.instance.constructor"},{"begin":"'''","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.coffee"}},"end":"'''","endCaptures":{"0":{"name":"punctuation.definition.string.end.coffee"}},"name":"string.quoted.heredoc.coffee"},{"begin":"\"\"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.coffee"}},"end":"\"\"\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.coffee"}},"name":"string.quoted.double.heredoc.coffee","patterns":[{"match":"\\\\.","name":"constant.character.escape.coffee"},{"include":"#interpolated_coffee"}]},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.coffee"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.coffee"}},"name":"string.quoted.script.coffee","patterns":[{"include":"source.js"}]},{"begin":"(?<!#)###(?!#)","captures":{"0":{"name":"punctuation.definition.comment.coffee"}},"end":"###(?:[ \\t]*\\n)","name":"comment.block.coffee","patterns":[{"match":"@\\w*","name":"storage.type.annotation.coffeescript"}]},{"begin":"(#)(?!\\{)","beginCaptures":{"1":{"name":"punctuation.definition.comment.coffee"}},"end":"\\n","name":"comment.line.number-sign.coffee"},{"begin":"/{3}","end":"(/{3})[imgy]{0,4}","name":"string.regexp.coffee","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"endCaptures":{"1":{"name":"punctuation.definition.string.begin.js"}},"patterns":[{"include":"#heregexp"}]},{"begin":"/(?=(?![ /*+?])([^\\\\]|\\\\.)*?/[igmy]{0,4}(?![a-zA-Z0-9]))","end":"(/)[imgy]{0,4}","name":"string.regexp.coffee","patterns":[{"include":"source.js.regexp"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"endCaptures":{"1":{"name":"punctuation.definition.string.begin.js"}}},{"match":"(?x)\\b(?<![\\.\\$])(\n\t\t\t\t\tbreak|by|catch|continue|else|finally|for|in|of|if|return|switch|\n\t\t\t\t\tthen|throw|try|unless|when|while|until|loop|do|(?<=for)\\s+own\n\t\t\t\t)(?!\\s*:)\\b","name":"keyword.control.coffee"},{"match":"(?x)and=|or=|!|%|&|\\^|\\*|\\/|(\\-)?\\-(?!>)|\\+\\+|\\+|~|==|=(?!>)|!=|<=|>=|<<=|>>=|\n\t\t\t\t>>>=|<>|<|>|!|&&|\\.\\.(\\.)?|\\?|\\||\\|\\||\\:|\\*=|(?<!\\()/=|%=|\\+=|\\-=|&=|\n\t\t\t\t\\^=|\\b(?<![\\.\\$])(instanceof|new|delete|typeof|and|or|is|isnt|not|super)(?!\\s*:)\\b","name":"keyword.operator.coffee"},{"match":"\\b(?<![\\.\\$])(case|default|function|var|void|with|const|let|enum|export|import|native|__hasProp|__extends|__slice|__bind|__indexOf|implements|interface|package|private|protected|public|static|yield)(?!\\s*:)\\b","name":"keyword.reserved.coffee"},{"captures":{"1":{"name":"variable.assignment.coffee"},"4":{"name":"punctuation.separator.key-value"},"5":{"name":"keyword.operator.coffee"}},"match":"([a-zA-Z\\$_](\\w|\\$|\\.)*\\s*(?!\\::)((:)|(=)(?!>))(?!(\\s*\\(.*\\))?\\s*([=-]>)))","name":"variable.assignment.coffee"},{"begin":"(?<=\\s|^)(\\{)(?=.+?\\}\\s+[:=])","beginCaptures":{"0":{"name":"keyword.operator.coffee"}},"end":"(\\}\\s*[:=])","endCaptures":{"0":{"name":"keyword.operator.coffee"}},"name":"meta.variable.assignment.destructured.object.coffee","patterns":[{"include":"#variable_name"},{"include":"#instance_variable"},{"include":"#single_quoted_string"},{"include":"#double_quoted_string"},{"include":"#numeric"}]},{"begin":"(?<=\\s|^)(\\[)(?=.+?\\]\\s+[:=])","beginCaptures":{"0":{"name":"keyword.operator.coffee"}},"end":"(\\]\\s*[:=])","endCaptures":{"0":{"name":"keyword.operator.coffee"}},"name":"meta.variable.assignment.destructured.array.coffee","patterns":[{"include":"#variable_name"},{"include":"#instance_variable"},{"include":"#single_quoted_string"},{"include":"#double_quoted_string"},{"include":"#numeric"}]},{"captures":{"1":{"name":"entity.name.function.coffee"},"2":{"name":"entity.name.function.coffee"},"3":{"name":"variable.parameter.function.coffee"},"4":{"name":"storage.type.function.coffee"}},"match":"(?x)\n\t\t\t\t(?<=^|\\s)\n\t\t\t\t(?=@?[a-zA-Z\\$_])\n\t\t\t\t(\n\t\t\t\t\t@?[a-zA-Z\\$_](\\w|\\$|:|\\.)*\\s*\n\t\t\t\t\t(?=[:=](\\s*\\(.*\\))?\\s*([=-]>))\n\t\t\t\t)\n\t\t\t","name":"meta.function.coffee"},{"match":"[=-]>","name":"storage.type.function.coffee"},{"match":"\\b(?<!\\.)(true|on|yes)(?!\\s*[:=])\\b","name":"constant.language.boolean.true.coffee"},{"match":"\\b(?<!\\.)(false|off|no)(?!\\s*[:=])\\b","name":"constant.language.boolean.false.coffee"},{"match":"\\b(?<!\\.)null(?!\\s*[:=])\\b","name":"constant.language.null.coffee"},{"match":"\\b(?<!\\.)(this|extends)(?!\\s*[:=])\\b","name":"variable.language.coffee"},{"captures":{"1":{"name":"storage.type.class.coffee"},"2":{"name":"entity.name.type.class.coffee"},"3":{"name":"keyword.control.inheritance.coffee"},"4":{"name":"entity.other.inherited-class.coffee"}},"match":"(class\\b)\\s+(@?[a-zA-Z\\$_][\\w\\.]*)?(?:\\s+(extends)\\s+(@?[a-zA-Z\\$\\._][\\w\\.]*))?","name":"meta.class.coffee"},{"match":"\\b(debugger|\\\\)\\b","name":"keyword.other.coffee"},{"match":"(?x)\\b(\n\t\t\t\tArray|ArrayBuffer|Blob|Boolean|Date|document|Function|\n\t\t\t\tInt(8|16|32|64)Array|Math|Map|Number|\n\t\t\t\tObject|Proxy|RegExp|Set|String|WeakMap|\n\t\t\t\twindow|Uint(8|16|32|64)Array|XMLHttpRequest\n\t\t\t)\\b","name":"support.class.coffee"},{"match":"\\b(console)\\b","name":"entity.name.type.object.coffee"},{"match":"((?<=console\\.)(debug|warn|info|log|error|time|timeEnd|assert))\\b","name":"support.function.console.coffee"},{"match":"(?x)\\b(\n\t\t\t\tdecodeURI(Component)?|encodeURI(Component)?|eval|parse(Float|Int)|require\n\t\t\t)\\b","name":"support.function.coffee"},{"match":"(?x)((?<=\\.)(\n\t\t\t\tapply|call|concat|every|filter|forEach|from|hasOwnProperty|indexOf|\n\t\t\t\tisPrototypeOf|join|lastIndexOf|map|of|pop|propertyIsEnumerable|push|\n\t\t\t\treduce(Right)?|reverse|shift|slice|some|sort|splice|to(Locale)?String|\n\t\t\t\tunshift|valueOf\n\t\t\t))\\b","name":"support.function.method.array.coffee"},{"match":"(?x)((?<=Array\\.)(\n\t\t\t\tisArray\n\t\t\t))\\b","name":"support.function.static.array.coffee"},{"match":"(?x)((?<=Object\\.)(\n\t\t\t\tcreate|definePropert(ies|y)|freeze|getOwnProperty(Descriptors?|Names)|\n\t\t\t\tgetProperty(Descriptor|Names)|getPrototypeOf|is(Extensible|Frozen|Sealed)?|\n\t\t\t\tisnt|keys|preventExtensions|seal\n\t\t\t))\\b","name":"support.function.static.object.coffee"},{"match":"(?x)((?<=Math\\.)(\n\t\t\t\tabs|acos|acosh|asin|asinh|atan|atan2|atanh|ceil|cos|cosh|exp|expm1|floor|\n\t\t\t\thypot|log|log10|log1p|log2|max|min|pow|random|round|sign|sin|sinh|sqrt|\n\t\t\t\ttan|tanh|trunc\n\t\t\t))\\b","name":"support.function.static.math.coffee"},{"match":"(?x)((?<=Number\\.)(\n\t\t\t\tis(Finite|Integer|NaN)|toInteger\n\t\t\t))\\b","name":"support.function.static.number.coffee"},{"match":"\\b(Infinity|NaN|undefined)\\b","name":"constant.language.coffee"},{"match":"\\;","name":"punctuation.terminator.statement.coffee"},{"match":",[ |\\t]*","name":"meta.delimiter.object.comma.coffee"},{"match":"\\.","name":"meta.delimiter.method.period.coffee"},{"match":"\\{|\\}","name":"meta.brace.curly.coffee"},{"match":"\\(|\\)","name":"meta.brace.round.coffee"},{"match":"\\[|\\]\\s*","name":"meta.brace.square.coffee"},{"include":"#instance_variable"},{"include":"#single_quoted_string"},{"include":"#double_quoted_string"},{"include":"#numeric"}],"repository":{"double_quoted_string":{"patterns":[{"begin":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.coffee"}},"end":"\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.coffee"}},"name":"string.quoted.double.coffee","patterns":[{"match":"\\\\(x\\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)","name":"constant.character.escape.coffee"},{"include":"#interpolated_coffee"}]}]},"embedded_comment":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.coffee"}},"match":"(?<!\\\\)(#).*$\\n?","name":"comment.line.number-sign.coffee"}]},"instance_variable":{"patterns":[{"match":"(@)([a-zA-Z_\\$]\\w*)?","name":"variable.other.readwrite.instance.coffee"}]},"interpolated_coffee":{"patterns":[{"begin":"\\#\\{","captures":{"0":{"name":"punctuation.section.embedded.coffee"}},"end":"\\}","name":"source.coffee.embedded.source","patterns":[{"include":"$self"}]}]},"numeric":{"patterns":[{"match":"(?<!\\$)\\b((0([box])[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?(e[+\\-]?[0-9]+)?))\\b","name":"constant.numeric.coffee"}]},"single_quoted_string":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.coffee"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.coffee"}},"name":"string.quoted.single.coffee","patterns":[{"match":"\\\\(x\\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)","name":"constant.character.escape.coffee"}]}]},"variable_name":{"patterns":[{"captures":{"1":{"name":"variable.assignment.coffee"}},"match":"([a-zA-Z\\$_]\\w*(\\.\\w+)*)","name":"variable.assignment.coffee"}]},"regex-character-class":{"patterns":[{"match":"\\\\[wWsSdD]|\\.","name":"constant.character.character-class.regexp"},{"match":"\\\\([0-7]{3}|x\\h\\h|u\\h\\h\\h\\h)","name":"constant.character.numeric.regexp"},{"match":"\\\\c[A-Z]","name":"constant.character.control.regexp"},{"match":"\\\\.","name":"constant.character.escape.backslash.regexp"}]},"heregexp":{"patterns":[{"match":"\\\\[bB]|\\^|\\$","name":"keyword.control.anchor.regexp"},{"match":"\\\\[1-9]\\d*","name":"keyword.other.back-reference.regexp"},{"match":"[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\()((\\?=)|(\\?!))","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"3":{"name":"meta.assertion.look-ahead.regexp"},"4":{"name":"meta.assertion.negative-look-ahead.regexp"}},"end":"(\\))","endCaptures":{"1":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.assertion.regexp","patterns":[{"include":"#heregexp"}]},{"begin":"\\((\\?:)?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"end":"\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#heregexp"}]},{"begin":"(\\[)(\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(\\])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"},{"include":"#interpolated_coffee"},{"include":"#embedded_comment"}]}}}
@@ -0,0 +1,3 @@
1
+ module Pointillist
2
+ autoload :Lexer, 'pygments/lexer'
3
+ end
@@ -0,0 +1,3 @@
1
+ module Pointillist
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,24 @@
1
+ require File.expand_path('../lib/pointillist/version', __FILE__)
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'pointillist'
5
+ s.version = Pointillist::VERSION
6
+
7
+ s.summary = 'Uses Atom stylesheets for syntax highlighting.'
8
+ s.description = 'Pointillist converts Atom stylesheets for use by Ruby, as a replacement to Pygments.'
9
+
10
+ s.homepage = 'https://github.com/gjtorikian/pointillist'
11
+ s.has_rdoc = false
12
+
13
+ s.authors = ['Garen Torikian']
14
+ s.email = ['gjtorikian@gmail.com']
15
+ s.license = 'MIT'
16
+
17
+ s.files = %w(LICENSE.txt README.md Rakefile pointillist.gemspec)
18
+ s.files += Dir.glob("languages/**/*")
19
+ s.files += Dir.glob("lib/**/*.rb")
20
+ s.test_files = Dir.glob("test/**/*")
21
+ s.require_paths = ['lib']
22
+
23
+ s.add_development_dependency 'rake'
24
+ end
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pointillist
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Garen Torikian
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Pointillist converts Atom stylesheets for use by Ruby, as a replacement
28
+ to Pygments.
29
+ email:
30
+ - gjtorikian@gmail.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - LICENSE.txt
36
+ - README.md
37
+ - Rakefile
38
+ - languages/_languages.yml
39
+ - languages/coffeescript.json
40
+ - lib/pointillist.rb
41
+ - lib/pointillist/version.rb
42
+ - pointillist.gemspec
43
+ homepage: https://github.com/gjtorikian/pointillist
44
+ licenses:
45
+ - MIT
46
+ metadata: {}
47
+ post_install_message:
48
+ rdoc_options: []
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ requirements: []
62
+ rubyforge_project:
63
+ rubygems_version: 2.2.2
64
+ signing_key:
65
+ specification_version: 4
66
+ summary: Uses Atom stylesheets for syntax highlighting.
67
+ test_files: []