From bef75c02e22480b556b39e28a7e077b156a50f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D4=9C=D0=B5=D1=95?= <5124946+wesinator@users.noreply.github.com> Date: Sat, 26 Jan 2019 15:36:53 -0500 Subject: [PATCH 1/2] Add YARA language extension From https://virustotalcloud.appspot.com/static/prettify/lang-yara.js close #533 --- src/lang-yara.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/lang-yara.js diff --git a/src/lang-yara.js b/src/lang-yara.js new file mode 100644 index 00000000..7a1ad311 --- /dev/null +++ b/src/lang-yara.js @@ -0,0 +1,4 @@ +PR.registerLangHandler( + PR.sourceDecorator({ + keywords:"all,and,any,ascii,at,condition,contains,entrypoint,false,filesize,fullword,for,global,import,in,include,int8,int16,int32,matches,meta,nocase,not,or,of,private,rule,strings,them,true,uint8,uint16,uint32,wide", + types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["yara"]); From 80ccec3d80ba98b40a58adcb6467d25c1916275a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D4=9C=D0=B5=D1=95?= <5124946+wesinator@users.noreply.github.com> Date: Tue, 12 Feb 2019 04:17:11 +0000 Subject: [PATCH 2/2] Rename src/lang-yara.js to loader/lang-yara.js https://virustotalcloud.appspot.com/static/prettify/lang-yara.js is loader syntax --- {src => loader}/lang-yara.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {src => loader}/lang-yara.js (100%) diff --git a/src/lang-yara.js b/loader/lang-yara.js similarity index 100% rename from src/lang-yara.js rename to loader/lang-yara.js