File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,14 +111,25 @@ private static ICodeCommentPattern[] CreateCommentPatterns(string language)
111111 }
112112 case "XML" :
113113 case "XAML" :
114- case "HTMLX" :
115114 {
116115 return new [ ] { new BlockCommentPattern ( "<!--" , "-->" ) } ;
117116 }
117+ case "HTMLX" :
118+ {
119+ // MEMO : HTML に埋め込まれたCSS, JavaScriptをサポートする
120+ return new ICodeCommentPattern [ ] {
121+ new BlockCommentPattern ( "<!--" , "-->" ) ,
122+ new BlockCommentPattern ( "/*" , "*/" ) ,
123+ new LineCommentPattern ( "//" ) } ;
124+ }
118125 case "HTML" :
119126 {
120127 // MEMO : VS の UncommentSelection コマンドがブロックコメント <%/* */%> に対応していない
121- return new [ ] { new BlockCommentPattern ( "<!--" , "-->" ) , new BlockCommentPattern ( "<%--" , "--%>" ) } ;
128+ return new ICodeCommentPattern [ ] {
129+ new BlockCommentPattern ( "<!--" , "-->" ) ,
130+ new BlockCommentPattern ( "<%--" , "--%>" ) ,
131+ new BlockCommentPattern ( "/*" , "*/" ) ,
132+ new LineCommentPattern ( "//" ) } ;
122133 }
123134 case "JavaScript" :
124135 case "F#" :
You can’t perform that action at this time.
0 commit comments