1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-03 03:42:26 +01:00

Add syntax mapping from NSE to Lua (#2214)

This commit is contained in:
Cre3per
2022-06-04 14:12:42 +02:00
committed by GitHub
parent 16488f3d82
commit ed4997c77c
4 changed files with 75 additions and 0 deletions

View File

@@ -67,6 +67,11 @@ impl<'a> SyntaxMapping<'a> {
.insert("*.pac", MappingTarget::MapTo("JavaScript (Babel)"))
.unwrap();
// See #2151, https://nmap.org/book/nse-language.html
mapping
.insert("*.nse", MappingTarget::MapTo("Lua"))
.unwrap();
// See #1008
mapping
.insert("rails", MappingTarget::MapToUnknown)