Run code cleanup

This commit is contained in:
ema
2025-04-30 01:15:05 +08:00
parent 30861cc40f
commit cb40018d52
6 changed files with 504 additions and 505 deletions

View File

@@ -21,7 +21,6 @@ using System.IO;
using System.Linq; using System.Linq;
using System.Windows; using System.Windows;
using System.Windows.Input; using System.Windows.Input;
using ImageMagick;
using QuickLook.Common.Helpers; using QuickLook.Common.Helpers;
using QuickLook.Common.Plugin; using QuickLook.Common.Plugin;
using QuickLook.Plugin.ImageViewer.AnimatedImage.Providers; using QuickLook.Plugin.ImageViewer.AnimatedImage.Providers;

View File

@@ -1,24 +1,24 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Translations> <Translations>
<en> <en>
<TOTAL_SIZE>Total Size</TOTAL_SIZE> <TOTAL_SIZE>Total Size</TOTAL_SIZE>
<FILE_VERSION>File Version</FILE_VERSION> <FILE_VERSION>File Version</FILE_VERSION>
<PRODUCT_VERSION>Product Version</PRODUCT_VERSION> <PRODUCT_VERSION>Product Version</PRODUCT_VERSION>
</en> </en>
<zh-CN> <zh-CN>
<TOTAL_SIZE>总大小</TOTAL_SIZE> <TOTAL_SIZE>总大小</TOTAL_SIZE>
<FILE_VERSION>文件版本</FILE_VERSION> <FILE_VERSION>文件版本</FILE_VERSION>
<PRODUCT_VERSION>产品版本</PRODUCT_VERSION> <PRODUCT_VERSION>产品版本</PRODUCT_VERSION>
</zh-CN> </zh-CN>
<zh-TW> <zh-TW>
<TOTAL_SIZE>縂大小</TOTAL_SIZE> <TOTAL_SIZE>縂大小</TOTAL_SIZE>
<FILE_VERSION>檔案版本</FILE_VERSION> <FILE_VERSION>檔案版本</FILE_VERSION>
<PRODUCT_VERSION>產品版本</PRODUCT_VERSION> <PRODUCT_VERSION>產品版本</PRODUCT_VERSION>
</zh-TW> </zh-TW>
<ja> <ja>
<TOTAL_SIZE>合計サイズ</TOTAL_SIZE> <TOTAL_SIZE>合計サイズ</TOTAL_SIZE>
<FILE_VERSION>ファイルバージョン</FILE_VERSION> <FILE_VERSION>ファイルバージョン</FILE_VERSION>
<PRODUCT_VERSION>製品バージョン</PRODUCT_VERSION> <PRODUCT_VERSION>製品バージョン</PRODUCT_VERSION>
</ja> </ja>
</Translations> </Translations>

View File

@@ -2,205 +2,205 @@
<SyntaxDefinition name="Batch" extensions=".bat;.cmd"> <SyntaxDefinition name="Batch" extensions=".bat;.cmd">
<Environment> <Environment>
<Default color="White" bgcolor="#000000"/> <Default color="White" bgcolor="#000000"/>
<Selection color="#000080" bgcolor="#C3C3FF"/> <Selection color="#000080" bgcolor="#C3C3FF"/>
<LineNumbers color="#A9A9A9" bgcolor="#000000"/> <LineNumbers color="#A9A9A9" bgcolor="#000000"/>
<CaretMarker color="#A9A9A9"/> <CaretMarker color="#A9A9A9"/>
<VRuler color="#808080"/> <VRuler color="#808080"/>
<FoldLine color="#D3D3D3" bgcolor="#000000"/> <FoldLine color="#D3D3D3" bgcolor="#000000"/>
<FoldMarker color="#D3D3D3" bgcolor="#000000"/> <FoldMarker color="#D3D3D3" bgcolor="#000000"/>
<SelectedFoldLine color="#D3D3D3" bgcolor="#000000"/> <SelectedFoldLine color="#D3D3D3" bgcolor="#000000"/>
<EOLMarkers color="#A9A9A9"/> <EOLMarkers color="#A9A9A9"/>
<SpaceMarkers color="#A9A9A9"/> <SpaceMarkers color="#A9A9A9"/>
<TabMarkers color="#A9A9A9"/> <TabMarkers color="#A9A9A9"/>
<InvalidLines color="#A9A9A9"/> <InvalidLines color="#A9A9A9"/>
</Environment> </Environment>
<Properties> <Properties>
<Property name="LineComment" value="REM "/> <Property name="LineComment" value="REM "/>
</Properties> </Properties>
<Digits name="Digits" color="White" bold="false" italic="false"/> <Digits name="Digits" color="White" bold="false" italic="false"/>
<RuleSets> <RuleSets>
<RuleSet ignorecase="true"> <RuleSet ignorecase="true">
<Delimiters>@+*\/=|'&lt;&gt;?;</Delimiters> <Delimiters>@+*\/=|'&lt;&gt;?;</Delimiters>
<Span name="LineComment1" stopateol="true" color="#00FF00" bold="false" italic="false"> <Span name="LineComment1" stopateol="true" color="#00FF00" bold="false" italic="false">
<Begin singleword="true">REM </Begin> <Begin singleword="true">REM </Begin>
</Span> </Span>
<Span name="LineComment2" stopateol="true" color="#00FF00" bold="false" italic="false"> <Span name="LineComment2" stopateol="true" color="#00FF00" bold="false" italic="false">
<Begin startofline="true">::</Begin> <Begin startofline="true">::</Begin>
</Span> </Span>
<Span name="Label" stopateol="true" color="#FF0000" bgcolor="#FFFF80" bold="false" italic="false"> <Span name="Label" stopateol="true" color="#FF0000" bgcolor="#FFFF80" bold="false" italic="false">
<Begin startofline="true">:</Begin> <Begin startofline="true">:</Begin>
</Span> </Span>
<Span name="Output" stopateol="true" color="White" bold="false" italic="false"> <Span name="Output" stopateol="true" color="White" bold="false" italic="false">
<Begin color="Blue">echo</Begin> <Begin color="Blue">echo</Begin>
</Span> </Span>
<KeyWords name="Keywords1" color="Blue" bold="false" italic="false"> <KeyWords name="Keywords1" color="Blue" bold="false" italic="false">
<Key word="aux"/> <Key word="aux"/>
<Key word="baud"/> <Key word="baud"/>
<Key word="break"/> <Key word="break"/>
<Key word="call"/> <Key word="call"/>
<Key word="cd"/> <Key word="cd"/>
<Key word="chcp"/> <Key word="chcp"/>
<Key word="chdir"/> <Key word="chdir"/>
<Key word="choice"/> <Key word="choice"/>
<Key word="cls"/> <Key word="cls"/>
<Key word="cmdextversion"/> <Key word="cmdextversion"/>
<Key word="cols"/> <Key word="cols"/>
<Key word="com"/> <Key word="com"/>
<Key word="con"/> <Key word="con"/>
<Key word="copy"/> <Key word="copy"/>
<Key word="cp"/> <Key word="cp"/>
<Key word="cut"/> <Key word="cut"/>
<Key word="data"/> <Key word="data"/>
<Key word="defined"/> <Key word="defined"/>
<Key word="del"/> <Key word="del"/>
<Key word="delay"/> <Key word="delay"/>
<Key word="dir"/> <Key word="dir"/>
<Key word="do"/> <Key word="do"/>
<Key word="dtr"/> <Key word="dtr"/>
<Key word="echo"/> <Key word="echo"/>
<Key word="else"/> <Key word="else"/>
<Key word="end"/> <Key word="end"/>
<Key word="equ"/> <Key word="equ"/>
<Key word="erase"/> <Key word="erase"/>
<Key word="errorlevel"/> <Key word="errorlevel"/>
<Key word="exist"/> <Key word="exist"/>
<Key word="exists"/> <Key word="exists"/>
<Key word="exit"/> <Key word="exit"/>
<Key word="for"/> <Key word="for"/>
<Key word="geq"/> <Key word="geq"/>
<Key word="goto"/> <Key word="goto"/>
<Key word="gtr"/> <Key word="gtr"/>
<Key word="hs"/> <Key word="hs"/>
<Key word="idsr"/> <Key word="idsr"/>
<Key word="if"/> <Key word="if"/>
<Key word="in"/> <Key word="in"/>
<Key word="leq"/> <Key word="leq"/>
<Key word="lfnfor"/> <Key word="lfnfor"/>
<Key word="lines"/> <Key word="lines"/>
<Key word="loadfix"/> <Key word="loadfix"/>
<Key word="loadhigh"/> <Key word="loadhigh"/>
<Key word="lock"/> <Key word="lock"/>
<Key word="low"/> <Key word="low"/>
<Key word="lpt"/> <Key word="lpt"/>
<Key word="lpt1"/> <Key word="lpt1"/>
<Key word="lss"/> <Key word="lss"/>
<Key word="max"/> <Key word="max"/>
<Key word="md"/> <Key word="md"/>
<Key word="min"/> <Key word="min"/>
<Key word="mkdir"/> <Key word="mkdir"/>
<Key word="move"/> <Key word="move"/>
<Key word="neq"/> <Key word="neq"/>
<Key word="normal"/> <Key word="normal"/>
<Key word="not"/> <Key word="not"/>
<Key word="nul"/> <Key word="nul"/>
<Key word="octs"/> <Key word="octs"/>
<Key word="odsr"/> <Key word="odsr"/>
<Key word="off"/> <Key word="off"/>
<Key word="on"/> <Key word="on"/>
<Key word="parity"/> <Key word="parity"/>
<Key word="path"/> <Key word="path"/>
<Key word="pause"/> <Key word="pause"/>
<Key word="pause"/> <Key word="pause"/>
<Key word="prn"/> <Key word="prn"/>
<Key word="prompt"/> <Key word="prompt"/>
<Key word="rate"/> <Key word="rate"/>
<Key word="rd"/> <Key word="rd"/>
<Key word="realtime"/> <Key word="realtime"/>
<Key word="ren"/> <Key word="ren"/>
<Key word="rename"/> <Key word="rename"/>
<Key word="rmd"/> <Key word="rmd"/>
<Key word="rmdir"/> <Key word="rmdir"/>
<Key word="rts"/> <Key word="rts"/>
<Key word="select"/> <Key word="select"/>
<Key word="separate"/> <Key word="separate"/>
<Key word="set"/> <Key word="set"/>
<Key word="sgn"/> <Key word="sgn"/>
<Key word="shared"/> <Key word="shared"/>
<Key word="shift"/> <Key word="shift"/>
<Key word="status"/> <Key word="status"/>
<Key word="stop"/> <Key word="stop"/>
<Key word="tg"/> <Key word="tg"/>
<Key word="then"/> <Key word="then"/>
<Key word="time"/> <Key word="time"/>
<Key word="to"/> <Key word="to"/>
<Key word="truename"/> <Key word="truename"/>
<Key word="type"/> <Key word="type"/>
<Key word="unlock"/> <Key word="unlock"/>
<Key word="ver"/> <Key word="ver"/>
<Key word="verify"/> <Key word="verify"/>
<Key word="verify"/> <Key word="verify"/>
<Key word="vol"/> <Key word="vol"/>
<Key word="wait"/> <Key word="wait"/>
<Key word="xon"/> <Key word="xon"/>
</KeyWords> </KeyWords>
<KeyWords name="Keywords2" color="#008080" bold="false" italic="false"> <KeyWords name="Keywords2" color="#008080" bold="false" italic="false">
<Key word="append"/> <Key word="append"/>
<Key word="assoc"/> <Key word="assoc"/>
<Key word="at"/> <Key word="at"/>
<Key word="attrib"/> <Key word="attrib"/>
<Key word="begin"/> <Key word="begin"/>
<Key word="cacls"/> <Key word="cacls"/>
<Key word="chkdsk"/> <Key word="chkdsk"/>
<Key word="chkntfs"/> <Key word="chkntfs"/>
<Key word="cmd"/> <Key word="cmd"/>
<Key word="color"/> <Key word="color"/>
<Key word="comp"/> <Key word="comp"/>
<Key word="compact"/> <Key word="compact"/>
<Key word="convert"/> <Key word="convert"/>
<Key word="ctty"/> <Key word="ctty"/>
<Key word="date"/> <Key word="date"/>
<Key word="delims"/> <Key word="delims"/>
<Key word="diskcomp"/> <Key word="diskcomp"/>
<Key word="diskcopy"/> <Key word="diskcopy"/>
<Key word="doskey"/> <Key word="doskey"/>
<Key word="enableextensions"/> <Key word="enableextensions"/>
<Key word="endlocal"/> <Key word="endlocal"/>
<Key word="eol"/> <Key word="eol"/>
<Key word="fc"/> <Key word="fc"/>
<Key word="find"/> <Key word="find"/>
<Key word="findstr"/> <Key word="findstr"/>
<Key word="format"/> <Key word="format"/>
<Key word="ftype"/> <Key word="ftype"/>
<Key word="graftabl"/> <Key word="graftabl"/>
<Key word="help"/> <Key word="help"/>
<Key word="keyb"/> <Key word="keyb"/>
<Key word="label"/> <Key word="label"/>
<Key word="mklink"/> <Key word="mklink"/>
<Key word="mode"/> <Key word="mode"/>
<Key word="more"/> <Key word="more"/>
<Key word="other"/> <Key word="other"/>
<Key word="ping"/> <Key word="ping"/>
<Key word="popd"/> <Key word="popd"/>
<Key word="print"/> <Key word="print"/>
<Key word="pushd"/> <Key word="pushd"/>
<Key word="recover"/> <Key word="recover"/>
<Key word="replace"/> <Key word="replace"/>
<Key word="restore"/> <Key word="restore"/>
<Key word="setlocal"/> <Key word="setlocal"/>
<Key word="skip"/> <Key word="skip"/>
<Key word="sort"/> <Key word="sort"/>
<Key word="start"/> <Key word="start"/>
<Key word="subst"/> <Key word="subst"/>
<Key word="title"/> <Key word="title"/>
<Key word="tokens"/> <Key word="tokens"/>
<Key word="tree"/> <Key word="tree"/>
<Key word="ttrib"/> <Key word="ttrib"/>
<Key word="xcopy"/> <Key word="xcopy"/>
</KeyWords> </KeyWords>
</RuleSet> </RuleSet>
</RuleSets> </RuleSets>
</SyntaxDefinition> </SyntaxDefinition>

View File

@@ -1,307 +1,307 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<SyntaxDefinition name="C#" extensions=".cs" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> <SyntaxDefinition name="C#" extensions=".cs" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
<!-- The named colors 'Comment' and 'String' are used in SharpDevelop to detect if a line is inside a multiline string/comment --> <!-- The named colors 'Comment' and 'String' are used in SharpDevelop to detect if a line is inside a multiline string/comment -->
<Color name="Comment" foreground="#57A64A" exampleText="// comment" /> <Color name="Comment" foreground="#57A64A" exampleText="// comment" />
<Color name="String" foreground="#D59D85" exampleText="string text = &quot;Hello, World!&quot;"/> <Color name="String" foreground="#D59D85" exampleText="string text = &quot;Hello, World!&quot;"/>
<Color name="StringInterpolation" foreground="#D59D85" exampleText="string text = $&quot;Hello, {name}!&quot;"/> <Color name="StringInterpolation" foreground="#D59D85" exampleText="string text = $&quot;Hello, {name}!&quot;"/>
<Color name="Char" foreground="Magenta" exampleText="char linefeed = '\n';"/> <Color name="Char" foreground="Magenta" exampleText="char linefeed = '\n';"/>
<Color name="Preprocessor" foreground="Green" exampleText="#region Title" /> <Color name="Preprocessor" foreground="Green" exampleText="#region Title" />
<Color name="Punctuation" exampleText="a(b.c);" /> <Color name="Punctuation" exampleText="a(b.c);" />
<Color name="ValueTypeKeywords" foreground="#4e8cc1" exampleText="bool b = true;" /> <Color name="ValueTypeKeywords" foreground="#4e8cc1" exampleText="bool b = true;" />
<Color name="ReferenceTypeKeywords" foreground="#4e8cc1" exampleText="object o;" /> <Color name="ReferenceTypeKeywords" foreground="#4e8cc1" exampleText="object o;" />
<Color name="MethodCall" foreground="#c4c498" exampleText="o.ToString();"/> <Color name="MethodCall" foreground="#c4c498" exampleText="o.ToString();"/>
<Color name="NumberLiteral" foreground="#B5CEA8" exampleText="3.1415f"/> <Color name="NumberLiteral" foreground="#B5CEA8" exampleText="3.1415f"/>
<Color name="ThisOrBaseReference" foreground="#3C6C9E" exampleText="this.Do(); base.Do();"/> <Color name="ThisOrBaseReference" foreground="#3C6C9E" exampleText="this.Do(); base.Do();"/>
<Color name="NullOrValueKeywords" exampleText="if (value == null)"/> <Color name="NullOrValueKeywords" exampleText="if (value == null)"/>
<Color name="Keywords" foreground="#569CD6" exampleText="if (a) {} else {}"/> <Color name="Keywords" foreground="#569CD6" exampleText="if (a) {} else {}"/>
<Color name="GotoKeywords" foreground="#569CD6" exampleText="continue; return null;"/> <Color name="GotoKeywords" foreground="#569CD6" exampleText="continue; return null;"/>
<Color name="ContextKeywords" foreground="#569CD6" exampleText="var a = from x in y select z;"/> <Color name="ContextKeywords" foreground="#569CD6" exampleText="var a = from x in y select z;"/>
<Color name="ExceptionKeywords" foreground="#569CD6" exampleText="try {} catch {} finally {}"/> <Color name="ExceptionKeywords" foreground="#569CD6" exampleText="try {} catch {} finally {}"/>
<Color name="CheckedKeyword" foreground="#569CD6" exampleText="checked {}"/> <Color name="CheckedKeyword" foreground="#569CD6" exampleText="checked {}"/>
<Color name="UnsafeKeywords" foreground="#569CD6" exampleText="unsafe { fixed (..) {} }"/> <Color name="UnsafeKeywords" foreground="#569CD6" exampleText="unsafe { fixed (..) {} }"/>
<Color name="OperatorKeywords" foreground="#569CD6" exampleText="public static implicit operator..."/> <Color name="OperatorKeywords" foreground="#569CD6" exampleText="public static implicit operator..."/>
<Color name="ParameterModifiers" foreground="#569CD6" exampleText="(ref int a, params int[] b)"/> <Color name="ParameterModifiers" foreground="#569CD6" exampleText="(ref int a, params int[] b)"/>
<Color name="Modifiers" foreground="#569CD6" exampleText="static readonly int a;"/> <Color name="Modifiers" foreground="#569CD6" exampleText="static readonly int a;"/>
<Color name="Visibility" foreground="#4e8cc1" exampleText="public override void ToString();"/> <Color name="Visibility" foreground="#4e8cc1" exampleText="public override void ToString();"/>
<Color name="NamespaceKeywords" foreground="#4e8cc1" exampleText="namespace A.B { using System; }"/> <Color name="NamespaceKeywords" foreground="#4e8cc1" exampleText="namespace A.B { using System; }"/>
<Color name="GetSetAddRemove" foreground="#4e8cc1" exampleText="int Prop { get; set; }"/> <Color name="GetSetAddRemove" foreground="#4e8cc1" exampleText="int Prop { get; set; }"/>
<Color name="TrueFalse" foreground="#569CD6" exampleText="b = false; a = true;" /> <Color name="TrueFalse" foreground="#569CD6" exampleText="b = false; a = true;" />
<Color name="TypeKeywords" foreground="#569CD6" exampleText="if (x is int) { a = x as int; type = typeof(int); size = sizeof(int); c = new object(); }"/> <Color name="TypeKeywords" foreground="#569CD6" exampleText="if (x is int) { a = x as int; type = typeof(int); size = sizeof(int); c = new object(); }"/>
<Color name="SemanticKeywords" foreground="#569CD6" exampleText="if (args == null) throw new ArgumentNullException(nameof(args));" /> <Color name="SemanticKeywords" foreground="#569CD6" exampleText="if (args == null) throw new ArgumentNullException(nameof(args));" />
<Property name="DocCommentMarker" value="///" /> <Property name="DocCommentMarker" value="///" />
<RuleSet name="CommentMarkerSet"> <RuleSet name="CommentMarkerSet">
<Keywords fontWeight="bold" foreground="Red"> <Keywords fontWeight="bold" foreground="Red">
<Word>TODO</Word> <Word>TODO</Word>
<Word>FIXME</Word> <Word>FIXME</Word>
</Keywords> </Keywords>
<Keywords fontWeight="bold" foreground="#E0E000"> <Keywords fontWeight="bold" foreground="#E0E000">
<Word>HACK</Word> <Word>HACK</Word>
<Word>UNDONE</Word> <Word>UNDONE</Word>
</Keywords> </Keywords>
</RuleSet> </RuleSet>
<!-- This is the main ruleset. --> <!-- This is the main ruleset. -->
<RuleSet> <RuleSet>
<Span color="Preprocessor"> <Span color="Preprocessor">
<Begin>\#</Begin> <Begin>\#</Begin>
<RuleSet name="PreprocessorSet"> <RuleSet name="PreprocessorSet">
<Span> <Span>
<!-- preprocessor directives that allows comments --> <!-- preprocessor directives that allows comments -->
<Begin fontWeight="bold"> <Begin fontWeight="bold">
(define|undef|if|elif|else|endif|line)\b (define|undef|if|elif|else|endif|line)\b
</Begin> </Begin>
<RuleSet> <RuleSet>
<Span color="Comment" ruleSet="CommentMarkerSet"> <Span color="Comment" ruleSet="CommentMarkerSet">
<Begin>//</Begin> <Begin>//</Begin>
</Span> </Span>
</RuleSet> </RuleSet>
</Span> </Span>
<Span> <Span>
<!-- preprocessor directives that don't allow comments --> <!-- preprocessor directives that don't allow comments -->
<Begin fontWeight="bold"> <Begin fontWeight="bold">
(region|endregion|error|warning|pragma)\b (region|endregion|error|warning|pragma)\b
</Begin> </Begin>
</Span> </Span>
</RuleSet> </RuleSet>
</Span> </Span>
<Span color="Comment" ruleSet="CommentMarkerSet"> <Span color="Comment" ruleSet="CommentMarkerSet">
<Begin>//</Begin> <Begin>//</Begin>
</Span> </Span>
<Span color="Comment" ruleSet="CommentMarkerSet" multiline="true"> <Span color="Comment" ruleSet="CommentMarkerSet" multiline="true">
<Begin>/\*</Begin> <Begin>/\*</Begin>
<End>\*/</End> <End>\*/</End>
</Span> </Span>
<Span color="String"> <Span color="String">
<Begin>"</Begin> <Begin>"</Begin>
<End>"</End> <End>"</End>
<RuleSet> <RuleSet>
<!-- span for escape sequences --> <!-- span for escape sequences -->
<Span begin="\\" end="."/> <Span begin="\\" end="."/>
</RuleSet> </RuleSet>
</Span> </Span>
<Span color="Char"> <Span color="Char">
<Begin>'</Begin> <Begin>'</Begin>
<End>'</End> <End>'</End>
<RuleSet> <RuleSet>
<!-- span for escape sequences --> <!-- span for escape sequences -->
<Span begin="\\" end="."/> <Span begin="\\" end="."/>
</RuleSet> </RuleSet>
</Span> </Span>
<Span color="String" multiline="true"> <Span color="String" multiline="true">
<Begin>@"</Begin> <Begin>@"</Begin>
<End>"</End> <End>"</End>
<RuleSet> <RuleSet>
<!-- span for escape sequences --> <!-- span for escape sequences -->
<Span begin='""' end=""/> <Span begin='""' end=""/>
</RuleSet> </RuleSet>
</Span> </Span>
<Span color="String"> <Span color="String">
<Begin>\$"</Begin> <Begin>\$"</Begin>
<End>"</End> <End>"</End>
<RuleSet> <RuleSet>
<!-- span for escape sequences --> <!-- span for escape sequences -->
<Span begin="\\" end="."/> <Span begin="\\" end="."/>
<Span begin="\{\{" end=""/> <Span begin="\{\{" end=""/>
<!-- string interpolation --> <!-- string interpolation -->
<Span begin="{" end="}" color="StringInterpolation" ruleSet=""/> <Span begin="{" end="}" color="StringInterpolation" ruleSet=""/>
</RuleSet> </RuleSet>
</Span> </Span>
<!-- don't highlight "@int" as keyword --> <!-- don't highlight "@int" as keyword -->
<Rule> <Rule>
@[\w\d_]+ @[\w\d_]+
</Rule> </Rule>
<Keywords color="TypeKeywords"> <Keywords color="TypeKeywords">
<Word>as</Word> <Word>as</Word>
<Word>is</Word> <Word>is</Word>
<Word>new</Word> <Word>new</Word>
<Word>sizeof</Word> <Word>sizeof</Word>
<Word>typeof</Word> <Word>typeof</Word>
<Word>stackalloc</Word> <Word>stackalloc</Word>
</Keywords> </Keywords>
<Keywords color="TrueFalse"> <Keywords color="TrueFalse">
<Word>true</Word> <Word>true</Word>
<Word>false</Word> <Word>false</Word>
</Keywords> </Keywords>
<Keywords color="Keywords"> <Keywords color="Keywords">
<Word>else</Word> <Word>else</Word>
<Word>if</Word> <Word>if</Word>
<Word>switch</Word> <Word>switch</Word>
<Word>case</Word> <Word>case</Word>
<Word>default</Word> <Word>default</Word>
<Word>do</Word> <Word>do</Word>
<Word>for</Word> <Word>for</Word>
<Word>foreach</Word> <Word>foreach</Word>
<Word>in</Word> <Word>in</Word>
<Word>while</Word> <Word>while</Word>
<Word>lock</Word> <Word>lock</Word>
</Keywords> </Keywords>
<Keywords color="GotoKeywords"> <Keywords color="GotoKeywords">
<Word>break</Word> <Word>break</Word>
<Word>continue</Word> <Word>continue</Word>
<Word>goto</Word> <Word>goto</Word>
<Word>return</Word> <Word>return</Word>
</Keywords> </Keywords>
<Keywords color="ContextKeywords"> <Keywords color="ContextKeywords">
<Word>yield</Word> <Word>yield</Word>
<Word>partial</Word> <Word>partial</Word>
<Word>global</Word> <Word>global</Word>
<Word>where</Word> <Word>where</Word>
<Word>select</Word> <Word>select</Word>
<Word>group</Word> <Word>group</Word>
<Word>by</Word> <Word>by</Word>
<Word>into</Word> <Word>into</Word>
<Word>from</Word> <Word>from</Word>
<Word>ascending</Word> <Word>ascending</Word>
<Word>descending</Word> <Word>descending</Word>
<Word>orderby</Word> <Word>orderby</Word>
<Word>let</Word> <Word>let</Word>
<Word>join</Word> <Word>join</Word>
<Word>on</Word> <Word>on</Word>
<Word>equals</Word> <Word>equals</Word>
<Word>var</Word> <Word>var</Word>
<Word>dynamic</Word> <Word>dynamic</Word>
<Word>await</Word> <Word>await</Word>
</Keywords> </Keywords>
<Keywords color="ExceptionKeywords"> <Keywords color="ExceptionKeywords">
<Word>try</Word> <Word>try</Word>
<Word>throw</Word> <Word>throw</Word>
<Word>catch</Word> <Word>catch</Word>
<Word>finally</Word> <Word>finally</Word>
</Keywords> </Keywords>
<Keywords color="CheckedKeyword"> <Keywords color="CheckedKeyword">
<Word>checked</Word> <Word>checked</Word>
<Word>unchecked</Word> <Word>unchecked</Word>
</Keywords> </Keywords>
<Keywords color="UnsafeKeywords"> <Keywords color="UnsafeKeywords">
<Word>fixed</Word> <Word>fixed</Word>
<Word>unsafe</Word> <Word>unsafe</Word>
</Keywords> </Keywords>
<Keywords color="ValueTypeKeywords"> <Keywords color="ValueTypeKeywords">
<Word>bool</Word> <Word>bool</Word>
<Word>byte</Word> <Word>byte</Word>
<Word>char</Word> <Word>char</Word>
<Word>decimal</Word> <Word>decimal</Word>
<Word>double</Word> <Word>double</Word>
<Word>enum</Word> <Word>enum</Word>
<Word>float</Word> <Word>float</Word>
<Word>int</Word> <Word>int</Word>
<Word>long</Word> <Word>long</Word>
<Word>sbyte</Word> <Word>sbyte</Word>
<Word>short</Word> <Word>short</Word>
<Word>struct</Word> <Word>struct</Word>
<Word>uint</Word> <Word>uint</Word>
<Word>ushort</Word> <Word>ushort</Word>
<Word>ulong</Word> <Word>ulong</Word>
</Keywords> </Keywords>
<Keywords color="ReferenceTypeKeywords"> <Keywords color="ReferenceTypeKeywords">
<Word>class</Word> <Word>class</Word>
<Word>interface</Word> <Word>interface</Word>
<Word>delegate</Word> <Word>delegate</Word>
<Word>object</Word> <Word>object</Word>
<Word>string</Word> <Word>string</Word>
<Word>void</Word> <Word>void</Word>
</Keywords> </Keywords>
<Keywords color="OperatorKeywords"> <Keywords color="OperatorKeywords">
<Word>explicit</Word> <Word>explicit</Word>
<Word>implicit</Word> <Word>implicit</Word>
<Word>operator</Word> <Word>operator</Word>
</Keywords> </Keywords>
<Keywords color="ParameterModifiers"> <Keywords color="ParameterModifiers">
<Word>params</Word> <Word>params</Word>
<Word>ref</Word> <Word>ref</Word>
<Word>out</Word> <Word>out</Word>
<Word>this</Word> <Word>this</Word>
</Keywords> </Keywords>
<Keywords color="ThisOrBaseReference"> <Keywords color="ThisOrBaseReference">
<Word>this</Word> <Word>this</Word>
<Word>base</Word> <Word>base</Word>
</Keywords> </Keywords>
<Keywords color="Modifiers"> <Keywords color="Modifiers">
<Word>abstract</Word> <Word>abstract</Word>
<Word>const</Word> <Word>const</Word>
<Word>event</Word> <Word>event</Word>
<Word>extern</Word> <Word>extern</Word>
<Word>override</Word> <Word>override</Word>
<Word>readonly</Word> <Word>readonly</Word>
<Word>sealed</Word> <Word>sealed</Word>
<Word>static</Word> <Word>static</Word>
<Word>virtual</Word> <Word>virtual</Word>
<Word>volatile</Word> <Word>volatile</Word>
<Word>async</Word> <Word>async</Word>
</Keywords> </Keywords>
<Keywords color="Visibility"> <Keywords color="Visibility">
<Word>public</Word> <Word>public</Word>
<Word>protected</Word> <Word>protected</Word>
<Word>private</Word> <Word>private</Word>
<Word>internal</Word> <Word>internal</Word>
<Word>file</Word> <Word>file</Word>
</Keywords> </Keywords>
<Keywords color="NamespaceKeywords"> <Keywords color="NamespaceKeywords">
<Word>namespace</Word> <Word>namespace</Word>
<Word>using</Word> <Word>using</Word>
</Keywords> </Keywords>
<Keywords color="GetSetAddRemove"> <Keywords color="GetSetAddRemove">
<Word>get</Word> <Word>get</Word>
<Word>set</Word> <Word>set</Word>
<Word>add</Word> <Word>add</Word>
<Word>remove</Word> <Word>remove</Word>
</Keywords> </Keywords>
<Keywords color="NullOrValueKeywords"> <Keywords color="NullOrValueKeywords">
<Word>null</Word> <Word>null</Word>
<Word>value</Word> <Word>value</Word>
</Keywords> </Keywords>
<Keywords color="SemanticKeywords"> <Keywords color="SemanticKeywords">
<Word>nameof</Word> <Word>nameof</Word>
</Keywords> </Keywords>
<!-- Mark previous rule--> <!-- Mark previous rule-->
<Rule color="MethodCall"> <Rule color="MethodCall">
\b \b
[\d\w_]+ # an identifier [\d\w_]+ # an identifier
(?=\s*\() # followed by ( (?=\s*\() # followed by (
</Rule> </Rule>
<!-- Digits --> <!-- Digits -->
<Rule color="NumberLiteral"> <Rule color="NumberLiteral">
\b0[xX][0-9a-fA-F]+ # hex number \b0[xX][0-9a-fA-F]+ # hex number
| |
( \b\d+(\.[0-9]+)? #number with optional floating point ( \b\d+(\.[0-9]+)? #number with optional floating point
| \.[0-9]+ #or just starting with floating point | \.[0-9]+ #or just starting with floating point
) )
([eE][+-]?[0-9]+)? # optional exponent ([eE][+-]?[0-9]+)? # optional exponent
</Rule> </Rule>
<Rule color="Punctuation"> <Rule color="Punctuation">
[?,.;()\[\]{}+\-/%*&lt;&gt;^+~!|&amp;]+ [?,.;()\[\]{}+\-/%*&lt;&gt;^+~!|&amp;]+
</Rule> </Rule>
</RuleSet> </RuleSet>
</SyntaxDefinition> </SyntaxDefinition>

View File

@@ -2,29 +2,29 @@
<SyntaxDefinition name="Shell Script" extensions=".sh"> <SyntaxDefinition name="Shell Script" extensions=".sh">
<RuleSets> <RuleSets>
<RuleSet ignorecase="false"> <RuleSet ignorecase="false">
<Span name="LineComment" stopateol="true" color="Green" bold="false" italic="false"> <Span name="LineComment" stopateol="true" color="Green" bold="false" italic="false">
<Begin>#</Begin> <Begin>#</Begin>
</Span> </Span>
<Span name="String" color="#808080" stopateol="true" bold="false" italic="false" escapecharacter="\"> <Span name="String" color="#808080" stopateol="true" bold="false" italic="false" escapecharacter="\">
<Begin>"</Begin> <Begin>"</Begin>
<End>"</End> <End>"</End>
</Span> </Span>
<Span name="Char" color="#808080" stopateol="true" bold="false" italic="false" escapecharacter="\"> <Span name="Char" color="#808080" stopateol="true" bold="false" italic="false" escapecharacter="\">
<Begin>'</Begin> <Begin>'</Begin>
<End>'</End> <End>'</End>
</Span> </Span>
<KeyWords name="Syntax" color="Blue" bold="false"> <KeyWords name="Syntax" color="Blue" bold="false">
<Key word="if"/> <Key word="if"/>
<Key word="then"/> <Key word="then"/>
<Key word="fi"/> <Key word="fi"/>
</KeyWords> </KeyWords>
</RuleSet> </RuleSet>
</RuleSets> </RuleSets>
</SyntaxDefinition> </SyntaxDefinition>

View File

@@ -434,14 +434,14 @@
<APP_SECOND>O QuickLook já está sendo executado</APP_SECOND> <APP_SECOND>O QuickLook já está sendo executado</APP_SECOND>
<APP_SECOND_TEXT>O QuickLook permite a visualização rápida de certos tipos de arquivos pressionando a barra de espaço enquanto o arquivo estiver destacado.</APP_SECOND_TEXT> <APP_SECOND_TEXT>O QuickLook permite a visualização rápida de certos tipos de arquivos pressionando a barra de espaço enquanto o arquivo estiver destacado.</APP_SECOND_TEXT>
<APP_PATH_NOT_WRITABLE>O caminho "{0}" não é gravável. Por favor verifique se você tem as permissões necessárias.</APP_PATH_NOT_WRITABLE> <APP_PATH_NOT_WRITABLE>O caminho "{0}" não é gravável. Por favor verifique se você tem as permissões necessárias.</APP_PATH_NOT_WRITABLE>
<MW_StayTop>Sempre visível</MW_StayTop> <MW_StayTop>Sempre visível</MW_StayTop>
<MW_PreventClosing>Impedir fechamento</MW_PreventClosing> <MW_PreventClosing>Impedir fechamento</MW_PreventClosing>
<MW_BrowseFolder>Abrir pasta {0}</MW_BrowseFolder> <MW_BrowseFolder>Abrir pasta {0}</MW_BrowseFolder>
<MW_Open>Abrir {0}</MW_Open> <MW_Open>Abrir {0}</MW_Open>
<MW_OpenWith>Abrir com {0}</MW_OpenWith> <MW_OpenWith>Abrir com {0}</MW_OpenWith>
<MW_OpenWithMenu>Abrir Com Menu</MW_OpenWithMenu> <MW_OpenWithMenu>Abrir Com Menu</MW_OpenWithMenu>
<MW_Run>Executar {0}</MW_Run> <MW_Run>Executar {0}</MW_Run>
<MW_Share>Compartilhar</MW_Share> <MW_Share>Compartilhar</MW_Share>
<Icon_RunAtStartup>Executar na &amp;Inicialização</Icon_RunAtStartup> <Icon_RunAtStartup>Executar na &amp;Inicialização</Icon_RunAtStartup>
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip> <Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
<Icon_CheckUpdate>Procurar por &amp;Atualizações...</Icon_CheckUpdate> <Icon_CheckUpdate>Procurar por &amp;Atualizações...</Icon_CheckUpdate>
@@ -459,7 +459,7 @@
<InfoPanel_File>{0} arquivo</InfoPanel_File> <InfoPanel_File>{0} arquivo</InfoPanel_File>
<InfoPanel_Files>{0} arquivos</InfoPanel_Files> <InfoPanel_Files>{0} arquivos</InfoPanel_Files>
<InfoPanel_FolderAndFile>({0} e {1})</InfoPanel_FolderAndFile> <InfoPanel_FolderAndFile>({0} e {1})</InfoPanel_FolderAndFile>
<InfoPanel_CantPreventClosing>O cancelamento de "Impedir fechamento" não é suportado</InfoPanel_CantPreventClosing> <InfoPanel_CantPreventClosing>O cancelamento de "Impedir fechamento" não é suportado</InfoPanel_CantPreventClosing>
</pt-BR> </pt-BR>
<pt-PT> <pt-PT>
<UI_FontFamily>Segoe UI</UI_FontFamily> <UI_FontFamily>Segoe UI</UI_FontFamily>