From 12d8d58871ada4b26f0511873f681d822b2a47e2 Mon Sep 17 00:00:00 2001 From: Ling0925 <2449858657a@gmail.com> Date: Mon, 20 May 2024 17:46:18 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20=E6=81=A2=E5=A4=8D=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- .../development-bundle/external/jshint.js | 6 ++--- .../development-bundle/external/jshint.js.rej | 22 +++++++++++++++++++ newyt/Js/prettify.js | 2 +- 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 newyt/Jquery-ui/development-bundle/external/jshint.js.rej diff --git a/.gitignore b/.gitignore index d4a088d..9491a2f 100644 --- a/.gitignore +++ b/.gitignore @@ -341,7 +341,7 @@ ASALocalRun/ # MSBuild Binary and Structured Log *.binlog -# NVidia Nsight GPU configuration file +# NVidia Nsight GPU debugger configuration file *.nvuser # MFractors (Xamarin productivity tool) working folder diff --git a/newyt/Jquery-ui/development-bundle/external/jshint.js b/newyt/Jquery-ui/development-bundle/external/jshint.js index d255fd5..8f06d9b 100644 --- a/newyt/Jquery-ui/development-bundle/external/jshint.js +++ b/newyt/Jquery-ui/development-bundle/external/jshint.js @@ -259,7 +259,7 @@ var JSHINT = (function () { camelcase : true, // if identifiers should be required in camel case couch : true, // if CouchDB globals should be predefined curly : true, // if curly braces around all blocks should be required - debug : true, // if statements should be allowed + debug : true, // if debugger statements should be allowed devel : true, // if logging globals should be predefined (console, // alert, etc.) dojo : true, // if Dojo Toolkit globals should be predefined @@ -4140,9 +4140,9 @@ loop: } }).labelled = true; - stmt("", function () { + stmt("debugger", function () { if (!option.debug) { - warning("All '' statements should be removed."); + warning("All 'debugger' statements should be removed."); } return this; }).exps = true; diff --git a/newyt/Jquery-ui/development-bundle/external/jshint.js.rej b/newyt/Jquery-ui/development-bundle/external/jshint.js.rej new file mode 100644 index 0000000..0e63ad7 --- /dev/null +++ b/newyt/Jquery-ui/development-bundle/external/jshint.js.rej @@ -0,0 +1,22 @@ +diff a/newyt/Jquery-ui/development-bundle/external/jshint.js b/newyt/Jquery-ui/development-bundle/external/jshint.js (rejected hunks) +@@ -259,7 +259,7 @@ + camelcase : true, // if identifiers should be required in camel case + couch : true, // if CouchDB globals should be predefined + curly : true, // if curly braces around all blocks should be required +- debug : true, // if debugger statements should be allowed ++ debug : true, // if statements should be allowed + devel : true, // if logging globals should be predefined (console, + // alert, etc.) + dojo : true, // if Dojo Toolkit globals should be predefined +@@ -4140,9 +4140,9 @@ + } + }).labelled = true; + +- stmt("debugger", function () { ++ stmt("", function () { + if (!option.debug) { +- warning("All 'debugger' statements should be removed."); ++ warning("All '' statements should be removed."); + } + return this; + }).exps = true; diff --git a/newyt/Js/prettify.js b/newyt/Js/prettify.js index 270a73f..34b912a 100644 --- a/newyt/Js/prettify.js +++ b/newyt/Js/prettify.js @@ -117,7 +117,7 @@ var prettyPrint; "for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then," + "throw,true,try,unless,until,when,while,yes"; var JSCRIPT_KEYWORDS = [COMMON_KEYWORDS, - ",eval,export,function,get,null,set,undefined,var,with," + + "debugger,eval,export,function,get,null,set,undefined,var,with," + "Infinity,NaN"]; var PERL_KEYWORDS = "caller,delete,die,do,dump,elsif,eval,exit,foreach,for," + "goto,if,import,last,local,my,next,no,our,print,package,redo,require," +