mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Add support for World of Warcraft .toc files
* Add language rule and heuristic for WoW Addon data * Add test fixtures for the .toc extension * Add grammar for syntax highlighting * Define colour of WoW .toc files * Refine heuristic to include a commonly-used keyword * Check whitespace in WoW-token heuristic * Include additional TeX keywords in .toc heuristic * Update grammar submodules * Cache license for WoW-toc grammar * Reverting sourcepawn update
This commit is contained in:
committed by
Arfon Smith
parent
8cf3b7ad51
commit
9ae19a1f94
@@ -390,6 +390,14 @@ module Linguist
|
||||
Language["SQL"]
|
||||
end
|
||||
end
|
||||
|
||||
disambiguate ".toc" do |data|
|
||||
if /^## |@no-lib-strip@/.match(data)
|
||||
Language["World of Warcraft Addon Data"]
|
||||
elsif /^\\(contentsline|defcounter|beamer|boolfalse)/.match(data)
|
||||
Language["TeX"]
|
||||
end
|
||||
end
|
||||
|
||||
disambiguate ".ts" do |data|
|
||||
if data.include?("<TS ")
|
||||
|
||||
@@ -3830,6 +3830,14 @@ WebIDL:
|
||||
tm_scope: source.webidl
|
||||
ace_mode: text
|
||||
|
||||
World of Warcraft Addon Data:
|
||||
type: data
|
||||
color: "#e0b330"
|
||||
extensions:
|
||||
- .toc
|
||||
tm_scope: source.toc
|
||||
ace_mode: text
|
||||
|
||||
X10:
|
||||
type: programming
|
||||
aliases:
|
||||
|
||||
Reference in New Issue
Block a user