Change NONE to none

NONE is a little shouty.
This commit is contained in:
Adam Roben
2014-11-21 11:52:29 -05:00
parent 49247e9ec2
commit ec3967d080
2 changed files with 78 additions and 78 deletions

View File

@@ -45,7 +45,7 @@ APL:
extensions: extensions:
- .apl - .apl
- .dyalog - .dyalog
tm_scope: NONE tm_scope: none
ASP: ASP:
type: programming type: programming
@@ -147,7 +147,7 @@ Arc:
color: "#ca2afe" color: "#ca2afe"
extensions: extensions:
- .arc - .arc
tm_scope: NONE tm_scope: none
Arduino: Arduino:
type: programming type: programming
@@ -164,14 +164,14 @@ AsciiDoc:
- .asciidoc - .asciidoc
- .adoc - .adoc
- .asc - .asc
tm_scope: NONE tm_scope: none
AspectJ: AspectJ:
type: programming type: programming
color: "#1957b0" color: "#1957b0"
extensions: extensions:
- .aj - .aj
tm_scope: NONE tm_scope: none
Assembly: Assembly:
type: programming type: programming
@@ -189,7 +189,7 @@ Augeas:
type: programming type: programming
extensions: extensions:
- .aug - .aug
tm_scope: NONE tm_scope: none
AutoHotkey: AutoHotkey:
type: programming type: programming
@@ -199,7 +199,7 @@ AutoHotkey:
extensions: extensions:
- .ahk - .ahk
- .ahkl - .ahkl
tm_scope: NONE tm_scope: none
AutoIt: AutoIt:
type: programming type: programming
@@ -292,7 +292,7 @@ Brightscript:
type: programming type: programming
extensions: extensions:
- .brs - .brs
tm_scope: NONE tm_scope: none
Bro: Bro:
type: programming type: programming
@@ -366,7 +366,7 @@ CLIPS:
type: programming type: programming
extensions: extensions:
- .clp - .clp
tm_scope: NONE tm_scope: none
CMake: CMake:
extensions: extensions:
@@ -429,7 +429,7 @@ Clean:
extensions: extensions:
- .icl - .icl
- .dcl - .dcl
tm_scope: NONE tm_scope: none
Clojure: Clojure:
type: programming type: programming
@@ -546,7 +546,7 @@ Creole:
wrap: true wrap: true
extensions: extensions:
- .creole - .creole
tm_scope: NONE tm_scope: none
Crystal: Crystal:
type: programming type: programming
@@ -614,7 +614,7 @@ Darcs Patch:
extensions: extensions:
- .darcspatch - .darcspatch
- .dpatch - .dpatch
tm_scope: NONE tm_scope: none
Dart: Dart:
type: programming type: programming
@@ -642,7 +642,7 @@ Dogescript:
color: "#cca760" color: "#cca760"
extensions: extensions:
- .djs - .djs
tm_scope: NONE tm_scope: none
Dylan: Dylan:
type: programming type: programming
@@ -658,7 +658,7 @@ E:
color: "#ccce35" color: "#ccce35"
extensions: extensions:
- .E - .E
tm_scope: NONE tm_scope: none
ECL: ECL:
type: programming type: programming
@@ -666,7 +666,7 @@ ECL:
extensions: extensions:
- .ecl - .ecl
- .eclxml - .eclxml
tm_scope: NONE tm_scope: none
Eagle: Eagle:
type: markup type: markup
@@ -750,7 +750,7 @@ FLUX:
extensions: extensions:
- .fx - .fx
- .flux - .flux
tm_scope: NONE tm_scope: none
FORTRAN: FORTRAN:
type: programming type: programming
@@ -824,13 +824,13 @@ G-code:
- .g - .g
- .gco - .gco
- .gcode - .gcode
tm_scope: NONE tm_scope: none
GAMS: GAMS:
type: programming type: programming
extensions: extensions:
- .gms - .gms
tm_scope: NONE tm_scope: none
GAP: GAP:
type: programming type: programming
@@ -839,7 +839,7 @@ GAP:
- .gap - .gap
- .gd - .gd
- .gi - .gi
tm_scope: NONE tm_scope: none
GAS: GAS:
type: programming type: programming
@@ -853,7 +853,7 @@ GDScript:
type: programming type: programming
extensions: extensions:
- .gd - .gd
tm_scope: NONE tm_scope: none
GLSL: GLSL:
group: C group: C
@@ -938,7 +938,7 @@ Golo:
color: "#f6a51f" color: "#f6a51f"
extensions: extensions:
- .golo - .golo
tm_scope: NONE tm_scope: none
Gosu: Gosu:
type: programming type: programming
@@ -954,7 +954,7 @@ Grace:
type: programming type: programming
extensions: extensions:
- .grace - .grace
tm_scope: NONE tm_scope: none
Grammatical Framework: Grammatical Framework:
type: programming type: programming
@@ -971,7 +971,7 @@ Graph Modeling Language:
type: data type: data
extensions: extensions:
- .gml - .gml
tm_scope: NONE tm_scope: none
Graphviz (DOT): Graphviz (DOT):
type: data type: data
@@ -1061,7 +1061,7 @@ HTTP:
type: data type: data
extensions: extensions:
- .http - .http
tm_scope: NONE tm_scope: none
Hack: Hack:
type: programming type: programming
@@ -1069,7 +1069,7 @@ Hack:
extensions: extensions:
- .hh - .hh
- .php - .php
tm_scope: NONE tm_scope: none
Haml: Haml:
group: HTML group: HTML
@@ -1092,7 +1092,7 @@ Harbour:
color: "#0e60e3" color: "#0e60e3"
extensions: extensions:
- .hb - .hb
tm_scope: NONE tm_scope: none
Haskell: Haskell:
type: programming type: programming
@@ -1118,7 +1118,7 @@ Hy:
- .hy - .hy
aliases: aliases:
- hylang - hylang
tm_scope: NONE tm_scope: none
IDL: IDL:
type: programming type: programming
@@ -1134,7 +1134,7 @@ IGOR Pro:
aliases: aliases:
- igor - igor
- igorpro - igorpro
tm_scope: NONE tm_scope: none
INI: INI:
type: data type: data
@@ -1155,7 +1155,7 @@ IRC log:
extensions: extensions:
- .irclog - .irclog
- .weechatlog - .weechatlog
tm_scope: NONE tm_scope: none
Idris: Idris:
type: programming type: programming
@@ -1177,7 +1177,7 @@ Inform 7:
Inno Setup: Inno Setup:
extensions: extensions:
- .iss - .iss
tm_scope: NONE tm_scope: none
Io: Io:
type: programming type: programming
@@ -1196,13 +1196,13 @@ Isabelle:
color: "#fdcd00" color: "#fdcd00"
extensions: extensions:
- .thy - .thy
tm_scope: NONE tm_scope: none
J: J:
type: programming type: programming
extensions: extensions:
- .ijs - .ijs
tm_scope: NONE tm_scope: none
JSON: JSON:
type: data type: data
@@ -1310,7 +1310,7 @@ KRL:
color: "#f5c800" color: "#f5c800"
extensions: extensions:
- .krl - .krl
tm_scope: NONE tm_scope: none
Kit: Kit:
type: markup type: markup
@@ -1344,7 +1344,7 @@ LOLCODE:
extensions: extensions:
- .lol - .lol
color: "#cc9900" color: "#cc9900"
tm_scope: NONE tm_scope: none
LSL: LSL:
type: programming type: programming
@@ -1359,7 +1359,7 @@ LabVIEW:
type: programming type: programming
extensions: extensions:
- .lvproj - .lvproj
tm_scope: NONE tm_scope: none
Lasso: Lasso:
type: programming type: programming
@@ -1398,14 +1398,14 @@ Liquid:
type: markup type: markup
extensions: extensions:
- .liquid - .liquid
tm_scope: NONE tm_scope: none
Literate Agda: Literate Agda:
type: programming type: programming
group: Agda group: Agda
extensions: extensions:
- .lagda - .lagda
tm_scope: NONE tm_scope: none
Literate CoffeeScript: Literate CoffeeScript:
type: programming type: programming
@@ -1582,7 +1582,7 @@ MediaWiki:
wrap: true wrap: true
extensions: extensions:
- .mediawiki - .mediawiki
tm_scope: NONE tm_scope: none
Mercury: Mercury:
type: programming type: programming
@@ -1597,7 +1597,7 @@ MiniD: # Legacy
searchable: false searchable: false
extensions: extensions:
- .minid # Dummy extension - .minid # Dummy extension
tm_scope: NONE tm_scope: none
Mirah: Mirah:
type: programming type: programming
@@ -1619,7 +1619,7 @@ Moocode:
type: programming type: programming
extensions: extensions:
- .moo - .moo
tm_scope: NONE tm_scope: none
MoonScript: MoonScript:
type: programming type: programming
@@ -1631,7 +1631,7 @@ MoonScript:
Myghty: Myghty:
extensions: extensions:
- .myt - .myt
tm_scope: NONE tm_scope: none
NSIS: NSIS:
extensions: extensions:
@@ -1677,7 +1677,7 @@ Nit:
color: "#0d8921" color: "#0d8921"
extensions: extensions:
- .nit - .nit
tm_scope: NONE tm_scope: none
Nix: Nix:
type: programming type: programming
@@ -1685,7 +1685,7 @@ Nix:
- .nix - .nix
aliases: aliases:
- nixos - nixos
tm_scope: NONE tm_scope: none
Nu: Nu:
type: programming type: programming
@@ -1704,7 +1704,7 @@ NumPy:
- .numpy - .numpy
- .numpyw - .numpyw
- .numsc - .numsc
tm_scope: NONE tm_scope: none
OCaml: OCaml:
type: programming type: programming
@@ -1765,7 +1765,7 @@ Omgrofl:
extensions: extensions:
- .omgrofl - .omgrofl
color: "#cabbff" color: "#cabbff"
tm_scope: NONE tm_scope: none
Opa: Opa:
type: programming type: programming
@@ -1777,7 +1777,7 @@ Opal:
color: "#f7ede0" color: "#f7ede0"
extensions: extensions:
- .opal - .opal
tm_scope: NONE tm_scope: none
OpenCL: OpenCL:
type: programming type: programming
@@ -1802,14 +1802,14 @@ OpenSCAD:
type: programming type: programming
extensions: extensions:
- .scad - .scad
tm_scope: NONE tm_scope: none
Org: Org:
type: prose type: prose
wrap: true wrap: true
extensions: extensions:
- .org - .org
tm_scope: NONE tm_scope: none
Ox: Ox:
type: programming type: programming
@@ -1817,14 +1817,14 @@ Ox:
- .ox - .ox
- .oxh - .oxh
- .oxo - .oxo
tm_scope: NONE tm_scope: none
Oxygene: Oxygene:
type: programming type: programming
color: "#5a63a3" color: "#5a63a3"
extensions: extensions:
- .oxygene - .oxygene
tm_scope: NONE tm_scope: none
PAWN: PAWN:
type: programming type: programming
@@ -1860,21 +1860,21 @@ Pan:
color: '#cc0000' color: '#cc0000'
extensions: extensions:
- .pan - .pan
tm_scope: NONE tm_scope: none
Papyrus: Papyrus:
type: programming type: programming
color: "#6600cc" color: "#6600cc"
extensions: extensions:
- .psc - .psc
tm_scope: NONE tm_scope: none
Parrot: Parrot:
type: programming type: programming
color: "#f3ca0a" color: "#f3ca0a"
extensions: extensions:
- .parrot # Dummy extension - .parrot # Dummy extension
tm_scope: NONE tm_scope: none
Parrot Assembly: Parrot Assembly:
group: Parrot group: Parrot
@@ -1883,7 +1883,7 @@ Parrot Assembly:
- pasm - pasm
extensions: extensions:
- .pasm - .pasm
tm_scope: NONE tm_scope: none
Parrot Internal Representation: Parrot Internal Representation:
group: Parrot group: Parrot
@@ -1935,14 +1935,14 @@ Perl6:
- .p6m - .p6m
- .pl6 - .pl6
- .pm6 - .pm6
tm_scope: NONE tm_scope: none
PigLatin: PigLatin:
type: programming type: programming
color: "#fcd7de" color: "#fcd7de"
extensions: extensions:
- .pig - .pig
tm_scope: NONE tm_scope: none
Pike: Pike:
type: programming type: programming
@@ -1957,14 +1957,14 @@ Pod:
wrap: true wrap: true
extensions: extensions:
- .pod - .pod
tm_scope: NONE tm_scope: none
PogoScript: PogoScript:
type: programming type: programming
color: "#d80074" color: "#d80074"
extensions: extensions:
- .pogo - .pogo
tm_scope: NONE tm_scope: none
PostScript: PostScript:
type: markup type: markup
@@ -2005,7 +2005,7 @@ Propeller Spin:
color: "#2b446d" color: "#2b446d"
extensions: extensions:
- .spin - .spin
tm_scope: NONE tm_scope: none
Protocol Buffer: Protocol Buffer:
type: markup type: markup
@@ -2029,7 +2029,7 @@ Pure Data:
color: "#91de79" color: "#91de79"
extensions: extensions:
- .pd - .pd
tm_scope: NONE tm_scope: none
PureScript: PureScript:
type: programming type: programming
@@ -2136,7 +2136,7 @@ RMarkdown:
extensions: extensions:
- .rmd - .rmd
- .Rmd - .Rmd
tm_scope: NONE tm_scope: none
Racket: Racket:
type: programming type: programming
@@ -2156,7 +2156,7 @@ Ragel in Ruby Host:
aliases: aliases:
- ragel-rb - ragel-rb
- ragel-ruby - ragel-ruby
tm_scope: NONE tm_scope: none
Raw token data: Raw token data:
search_term: raw search_term: raw
@@ -2164,7 +2164,7 @@ Raw token data:
- raw - raw
extensions: extensions:
- .raw - .raw
tm_scope: NONE tm_scope: none
Rebol: Rebol:
type: programming type: programming
@@ -2184,12 +2184,12 @@ Red:
- .reds - .reds
aliases: aliases:
- red/system - red/system
tm_scope: NONE tm_scope: none
Redcode: Redcode:
extensions: extensions:
- .cw - .cw
tm_scope: NONE tm_scope: none
RobotFramework: RobotFramework:
type: programming type: programming
@@ -2263,7 +2263,7 @@ SAS:
color: "#1E90FF" color: "#1E90FF"
extensions: extensions:
- .sas - .sas
tm_scope: NONE tm_scope: none
SCSS: SCSS:
type: markup type: markup
@@ -2357,7 +2357,7 @@ Self:
color: "#0579aa" color: "#0579aa"
extensions: extensions:
- .self - .self
tm_scope: NONE tm_scope: none
Shell: Shell:
type: programming type: programming
@@ -2396,7 +2396,7 @@ Shen:
color: "#120F14" color: "#120F14"
extensions: extensions:
- .shen - .shen
tm_scope: NONE tm_scope: none
Slash: Slash:
type: programming type: programming
@@ -2467,7 +2467,7 @@ Stylus:
group: CSS group: CSS
extensions: extensions:
- .styl - .styl
tm_scope: NONE tm_scope: none
SuperCollider: SuperCollider:
type: programming type: programming
@@ -2475,7 +2475,7 @@ SuperCollider:
extensions: extensions:
- .scd - .scd
- .sc - .sc
tm_scope: NONE tm_scope: none
Swift: Swift:
type: programming type: programming
@@ -2501,7 +2501,7 @@ TXL:
type: programming type: programming
extensions: extensions:
- .txl - .txl
tm_scope: NONE tm_scope: none
Tcl: Tcl:
type: programming type: programming
@@ -2558,7 +2558,7 @@ Textile:
wrap: true wrap: true
extensions: extensions:
- .textile - .textile
tm_scope: NONE tm_scope: none
Thrift: Thrift:
type: programming type: programming
@@ -2572,7 +2572,7 @@ Turing:
extensions: extensions:
- .t - .t
- .tu - .tu
tm_scope: NONE tm_scope: none
Twig: Twig:
type: markup type: markup
@@ -2833,7 +2833,7 @@ Zimpl:
- .zimpl - .zimpl
- .zmpl - .zmpl
- .zpl - .zpl
tm_scope: NONE tm_scope: none
eC: eC:
type: programming type: programming
@@ -2841,7 +2841,7 @@ eC:
extensions: extensions:
- .ec - .ec
- .eh - .eh
tm_scope: NONE tm_scope: none
edn: edn:
type: data type: data
@@ -2856,7 +2856,7 @@ fish:
group: Shell group: Shell
extensions: extensions:
- .fish - .fish
tm_scope: NONE tm_scope: none
mupad: mupad:
extensions: extensions:
@@ -2897,4 +2897,4 @@ xBase:
color: "#3a4040" color: "#3a4040"
extensions: extensions:
- .prg - .prg
tm_scope: NONE tm_scope: none

View File

@@ -363,9 +363,9 @@ class TestLanguage < Test::Unit::TestCase
def test_all_languages_have_grammars def test_all_languages_have_grammars
scopes = YAML.load(File.read(File.expand_path("../../grammars.yml", __FILE__))).values.flatten scopes = YAML.load(File.read(File.expand_path("../../grammars.yml", __FILE__))).values.flatten
missing = Language.all.reject { |language| language.tm_scope == "NONE" || scopes.include?(language.tm_scope) } missing = Language.all.reject { |language| language.tm_scope == "none" || scopes.include?(language.tm_scope) }
message = "The following languages' scopes are not listed in grammars.yml. Please add grammars for all new languages.\n" message = "The following languages' scopes are not listed in grammars.yml. Please add grammars for all new languages.\n"
message << "If no grammar exists for a language, mark the language with `tm_scope: NONE` in lib/linguist/languages.yml.\n" message << "If no grammar exists for a language, mark the language with `tm_scope: none` in lib/linguist/languages.yml.\n"
width = missing.map { |language| language.name.length }.max width = missing.map { |language| language.name.length }.max
message << missing.map { |language| sprintf("%-#{width}s %s", language.name, language.tm_scope) }.sort.join("\n") message << missing.map { |language| sprintf("%-#{width}s %s", language.name, language.tm_scope) }.sort.join("\n")