Skip to content

Commit b41c47e

Browse files
committed
add support for AXAML, #949
1 parent b6e5822 commit b41c47e

File tree

5 files changed

+186
-0
lines changed

5 files changed

+186
-0
lines changed

Unix/cloc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8846,6 +8846,7 @@ sub set_constants { # {{{1
88468846
'gawk' => 'awk' ,
88478847
'auk' => 'awk' ,
88488848
'awk' => 'awk' ,
8849+
'axaml' => 'AXAML' ,
88498850
'bash' => 'Bourne Again Shell' ,
88508851
'bazel' => 'Starlark' ,
88518852
'BUILD' => 'Bazel' ,
@@ -9264,6 +9265,7 @@ sub set_constants { # {{{1
92649265
'm' => 'MATLAB/Mathematica/Objective-C/MUMPS/Mercury' ,
92659266
'mm' => 'Objective-C++' ,
92669267
'msg' => 'Gencat NLS' ,
9268+
'magik' => 'Magik' ,
92679269
'nbp' => 'Mathematica' ,
92689270
'mathematica' => 'Mathematica' ,
92699271
'ma' => 'Mathematica' ,
@@ -10005,6 +10007,8 @@ sub set_constants { # {{{1
1000510007
[ 'remove_matches' , '^\s*#' ],
1000610008
[ 'remove_inline' , '#.*$' ],
1000710009
],
10010+
'AXAML' => [ [ 'remove_html_comments', ],
10011+
[ 'call_regexp_common' , 'HTML' ], ],
1000810012
'Bazel' => [
1000910013
[ 'remove_matches' , '^\s*#' ],
1001010014
[ 'remove_inline' , '#.*$' ],
@@ -10760,6 +10764,10 @@ sub set_constants { # {{{1
1076010764
[ 'remove_matches' , '^\s*%' ],
1076110765
[ 'remove_inline' , '%.*$' ],
1076210766
],
10767+
'Magik' => [
10768+
[ 'remove_matches' , '^\s*#' ],
10769+
[ 'remove_inline' , '#.*$' ],
10770+
],
1076310771
'Mathematica' => [
1076410772
[ 'remove_between_general', '(*', '*)' ],
1076510773
],
@@ -11924,6 +11932,7 @@ sub set_constants { # {{{1
1192411932
'autocoder' => 0.25,
1192511933
'AutoHotkey' => 1.29,
1192611934
'awk' => 3.81,
11935+
'AXAML' => 2.00,
1192711936
'basic' => 0.75,
1192811937
'Bazel' => 1.00,
1192911938
'bc' => 1.50,
@@ -12288,6 +12297,7 @@ sub set_constants { # {{{1
1228812297
'lex' => 1.00,
1228912298
'Julia' => 4.00,
1229012299
'MATLAB' => 4.00,
12300+
'Magik' => 2.50,
1229112301
'Mathematica' => 5.00,
1229212302
'Mercury' => 3.00,
1229312303
'Maven/XML' => 2.5,

Unix/t/00_C.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ my @Tests = (
9797
'ref' => '../tests/outputs/cad.asy.yaml',
9898
'args' => '../tests/inputs/cad.asy',
9999
},
100+
{
101+
'name' => 'AXAML',
102+
'ref' => '../tests/outputs/HelpersView.axaml.yaml',
103+
'args' => '../tests/inputs/HelpersView.axaml',
104+
},
100105
{
101106
'name' => 'Bazel',
102107
'ref' => '../tests/outputs/BUILD.yaml',

cloc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8838,6 +8838,7 @@ sub set_constants { # {{{1
88388838
'gawk' => 'awk' ,
88398839
'auk' => 'awk' ,
88408840
'awk' => 'awk' ,
8841+
'axaml' => 'AXAML' ,
88418842
'bash' => 'Bourne Again Shell' ,
88428843
'bazel' => 'Starlark' ,
88438844
'BUILD' => 'Bazel' ,
@@ -9998,6 +9999,8 @@ sub set_constants { # {{{1
99989999
[ 'remove_matches' , '^\s*#' ],
999910000
[ 'remove_inline' , '#.*$' ],
1000010001
],
10002+
'AXAML' => [ [ 'remove_html_comments', ],
10003+
[ 'call_regexp_common' , 'HTML' ], ],
1000110004
'Bazel' => [
1000210005
[ 'remove_matches' , '^\s*#' ],
1000310006
[ 'remove_inline' , '#.*$' ],
@@ -11921,6 +11924,7 @@ sub set_constants { # {{{1
1192111924
'autocoder' => 0.25,
1192211925
'AutoHotkey' => 1.29,
1192311926
'awk' => 3.81,
11927+
'AXAML' => 2.00,
1192411928
'basic' => 0.75,
1192511929
'Bazel' => 1.00,
1192611930
'bc' => 1.50,

tests/inputs/HelpersView.axaml

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
<!--
2+
https://github.com/kikipoulet/SukiUI/raw/b1d624b2472ebd9e442b4870e6e53b8852b86345/SukiUI.Demo/Features/Helpers/HelpersView.axaml
3+
-->
4+
<UserControl
5+
d:DesignHeight="450"
6+
d:DesignWidth="800"
7+
mc:Ignorable="d"
8+
x:Class="SukiUI.Demo.Features.Helpers.HelpersView"
9+
x:DataType="helpers:HelpersViewModel"
10+
xmlns="https://github.com/avaloniaui"
11+
xmlns:X="clr-namespace:SukiUI.Helpers.ConditionalXAML;assembly=SukiUI"
12+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
13+
xmlns:glassMorphism="clr-namespace:SukiUI.Controls.GlassMorphism;assembly=SukiUI"
14+
xmlns:helpers="clr-namespace:SukiUI.Demo.Features.Helpers"
15+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
16+
xmlns:suki="https://github.com/kikipoulet/SukiUI"
17+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
18+
<UserControl.Styles>
19+
<Style Selector="suki|SukiSideMenu /template/ suki|GlassCard#Glass">
20+
<Setter Property="Opacity" Value="0.75" />
21+
</Style>
22+
</UserControl.Styles>
23+
<suki:SukiSideMenu Margin="0">
24+
<suki:SukiSideMenu.Items>
25+
<suki:SukiSideMenuItem Classes="Compact" Header="Syntax Helpers">
26+
<suki:SukiSideMenuItem.Icon>
27+
<PathIcon
28+
Data="{x:Static suki:Icons.ChevronRight}"
29+
Foreground="{DynamicResource SukiLowText}"
30+
Height="13"
31+
HorizontalAlignment="Center"
32+
VerticalAlignment="Center"
33+
Width="13" />
34+
35+
</suki:SukiSideMenuItem.Icon>
36+
<suki:SukiSideMenuItem.PageContent>
37+
38+
<helpers:SyntaxHelpers />
39+
40+
</suki:SukiSideMenuItem.PageContent>
41+
</suki:SukiSideMenuItem>
42+
43+
44+
<suki:SukiSideMenuItem Classes="Compact" Header="Easy Animations">
45+
<suki:SukiSideMenuItem.Icon>
46+
<PathIcon
47+
Data="{x:Static suki:Icons.ChevronRight}"
48+
Foreground="{DynamicResource SukiLowText}"
49+
Height="13"
50+
HorizontalAlignment="Center"
51+
VerticalAlignment="Center"
52+
Width="13" />
53+
54+
</suki:SukiSideMenuItem.Icon>
55+
<suki:SukiSideMenuItem.PageContent>
56+
<ScrollViewer>
57+
<helpers:Easy_Animations />
58+
</ScrollViewer>
59+
</suki:SukiSideMenuItem.PageContent>
60+
</suki:SukiSideMenuItem>
61+
62+
<suki:SukiSideMenuItem Classes="Compact" Header="Suki Easings">
63+
<suki:SukiSideMenuItem.Icon>
64+
<PathIcon
65+
Data="{x:Static suki:Icons.ChevronRight}"
66+
Foreground="{DynamicResource SukiLowText}"
67+
Height="13"
68+
HorizontalAlignment="Center"
69+
VerticalAlignment="Center"
70+
Width="13" />
71+
72+
</suki:SukiSideMenuItem.Icon>
73+
<suki:SukiSideMenuItem.PageContent>
74+
<ScrollViewer>
75+
<helpers:CustomEasings />
76+
</ScrollViewer>
77+
</suki:SukiSideMenuItem.PageContent>
78+
</suki:SukiSideMenuItem>
79+
80+
<suki:SukiSideMenuItem Classes="Compact" Header="Spring Easing">
81+
<suki:SukiSideMenuItem.Icon>
82+
<PathIcon
83+
Data="{x:Static suki:Icons.ChevronRight}"
84+
Foreground="{DynamicResource SukiLowText}"
85+
Height="13"
86+
HorizontalAlignment="Center"
87+
VerticalAlignment="Center"
88+
Width="13" />
89+
90+
</suki:SukiSideMenuItem.Icon>
91+
<suki:SukiSideMenuItem.PageContent>
92+
<ScrollViewer>
93+
<helpers:SpringEasing />
94+
</ScrollViewer>
95+
</suki:SukiSideMenuItem.PageContent>
96+
</suki:SukiSideMenuItem>
97+
98+
<!-- <suki:SukiSideMenuItem Classes="Compact" Header="Organic Move">
99+
<suki:SukiSideMenuItem.Icon>
100+
<PathIcon Width="13"
101+
Height="13"
102+
HorizontalAlignment="Center"
103+
VerticalAlignment="Center"
104+
Data="{x:Static suki:Icons.ChevronRight}"
105+
Foreground="{DynamicResource SukiLowText}" />
106+
107+
</suki:SukiSideMenuItem.Icon>
108+
<suki:SukiSideMenuItem.PageContent>
109+
<ScrollViewer>
110+
<helpers:OrganicMove />
111+
</ScrollViewer>
112+
</suki:SukiSideMenuItem.PageContent>
113+
</suki:SukiSideMenuItem>-->
114+
115+
<suki:SukiSideMenuItem Classes="Compact" Header="Squish Effect">
116+
<suki:SukiSideMenuItem.Icon>
117+
<PathIcon
118+
Data="{x:Static suki:Icons.ChevronRight}"
119+
Foreground="{DynamicResource SukiLowText}"
120+
Height="13"
121+
HorizontalAlignment="Center"
122+
VerticalAlignment="Center"
123+
Width="13" />
124+
125+
</suki:SukiSideMenuItem.Icon>
126+
<suki:SukiSideMenuItem.PageContent>
127+
<ScrollViewer>
128+
<helpers:PullingEffect />
129+
</ScrollViewer>
130+
</suki:SukiSideMenuItem.PageContent>
131+
</suki:SukiSideMenuItem>
132+
133+
<!-- Other Pages -->
134+
135+
</suki:SukiSideMenu.Items>
136+
137+
138+
<suki:SukiSideMenu.HeaderContent>
139+
<Panel />
140+
</suki:SukiSideMenu.HeaderContent>
141+
142+
<suki:SukiSideMenu.FooterContent>
143+
<Panel />
144+
</suki:SukiSideMenu.FooterContent>
145+
</suki:SukiSideMenu>
146+
</UserControl>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
# github.com/AlDanial/cloc
3+
header :
4+
cloc_url : github.com/AlDanial/cloc
5+
cloc_version : 2.07
6+
elapsed_seconds : 0.00414800643920898
7+
n_files : 1
8+
n_lines : 146
9+
files_per_second : 241.079664329233
10+
lines_per_second : 35197.6309920681
11+
report_file : ../outputs/HelpersView.axaml.yaml
12+
'AXAML' :
13+
nFiles: 1
14+
blank: 19
15+
comment: 19
16+
code: 108
17+
SUM:
18+
blank: 19
19+
comment: 19
20+
code: 108
21+
nFiles: 1

0 commit comments

Comments
 (0)