From 45dfd4b4a0d09090fdf5eb80c6cf008650b8ce92 Mon Sep 17 00:00:00 2001 From: BreadcrumbIsTaken <63469489+BreadcrumbIsTaken@users.noreply.github.com> Date: Sun, 12 Dec 2021 13:03:35 -0800 Subject: [PATCH 1/2] Added DenizenScript language support. --- cloc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cloc b/cloc index d55d2ef8..d6ef4cc8 100755 --- a/cloc +++ b/cloc @@ -7688,6 +7688,7 @@ sub set_constants { # {{{1 # bash or sh scripts 'da' => 'DAL' , 'dart' => 'Dart' , + 'dsc' => 'DenizenScript' , 'def' => 'Windows Module Definition', 'dhall' => 'dhall' , 'dt' => 'DIET' , @@ -8759,6 +8760,10 @@ sub set_constants { # {{{1 [ 'rm_comments_in_strings', '"', '//', '' ], [ 'call_regexp_common' , 'C++' ], ], + 'DenizenScript' => [ # same as YAML + [ 'remove_matches' , '^\s*#' ], + [ 'remove_inline' , '#.*$' ], + ], 'dhall' => [ [ 'remove_haskell_comments', '>filename<' ], ], 'Delphi Form' => [ # same as Pascal [ 'remove_between_regex', '\{[^$]', '}' ], @@ -10190,6 +10195,7 @@ sub set_constants { # {{{1 'D' => 1.70, 'DAL' => 1.50, 'Dart' => 2.00, + 'DenizenScript' => 0.00, # scaling is unknown. 'data base default' => 2.00, 'dataflex' => 2.00, 'datatrieve' => 4.00, From 14eed5dd33fb3e5a8ca49c1428e031e0da9178ac Mon Sep 17 00:00:00 2001 From: BreadcrumbIsTaken <63469489+BreadcrumbIsTaken@users.noreply.github.com> Date: Sat, 18 Dec 2021 11:28:16 -0800 Subject: [PATCH 2/2] Updated scale for DenizenScript to a non-zero value. --- cloc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloc b/cloc index d6ef4cc8..d1ab76cb 100755 --- a/cloc +++ b/cloc @@ -10195,7 +10195,7 @@ sub set_constants { # {{{1 'D' => 1.70, 'DAL' => 1.50, 'Dart' => 2.00, - 'DenizenScript' => 0.00, # scaling is unknown. + 'DenizenScript' => 1.00, # scaling is unknown. 'data base default' => 2.00, 'dataflex' => 2.00, 'datatrieve' => 4.00,