File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " ruby" ,
3- "version" : " 0.1 .0" ,
3+ "version" : " 0.2 .0" ,
44 "publisher" : " vscode" ,
55 "engines" : { "vscode" : " *" },
6+ "activationEvents" : [" onLanguage:ruby" ],
7+ "main" : " ./out/rubyMain" ,
68 "contributes" : {
79 "languages" : [{
810 "id" : " ruby" ,
1719 "scopeName" : " source.ruby" ,
1820 "path" : " ./syntaxes/Ruby.plist"
1921 }]
22+ },
23+ "scripts" : {
24+ "compile" : " gulp compile-extension:ruby" ,
25+ "watch" : " gulp watch-extension:ruby"
2026 }
2127}
Original file line number Diff line number Diff line change 1+ /*---------------------------------------------------------------------------------------------
2+ * Copyright (c) Microsoft Corporation. All rights reserved.
3+ * Licensed under the MIT License. See License.txt in the project root for license information.
4+ *--------------------------------------------------------------------------------------------*/
5+ 'use strict' ;
6+ import { ExtensionContext , languages } from 'vscode' ;
7+
8+ export function activate ( context : ExtensionContext ) : any {
9+ languages . setLanguageConfiguration ( 'ruby' , {
10+ indentationRules : {
11+ increaseIndentPattern : / ^ \s * ( ( b e g i n | c l a s s | d e f | e l s e | e l s i f | e n s u r e | f o r | i f | m o d u l e | r e s c u e | u n l e s s | u n t i l | w h e n | w h i l e ) | ( .* \s d o \b ) ) \b [ ^ \{ ; ] * $ / ,
12+ decreaseIndentPattern : / ^ \s * ( [ } \] ] ( [ , ) ] ? \s * ( # | $ ) | \. [ a - z A - Z _ ] \w * \b ) | ( e n d | r e s c u e | e n s u r e | e l s e | e l s i f | w h e n ) \b ) /
13+ } ,
14+ wordPattern : / ( - ? \d + (?: \. \d + ) ) | ( : ? [ A - Z a - z ] [ ^ - ` ~ @ # % ^ & ( ) = + [ { } | ; : ' " , < > / . * \] \s \\ ! ? ] * [ ! ? ] ? ) /
15+ } ) ;
16+ }
Original file line number Diff line number Diff line change 1+ /*---------------------------------------------------------------------------------------------
2+ * Copyright (c) Microsoft Corporation. All rights reserved.
3+ * Licensed under the MIT License. See License.txt in the project root for license information.
4+ *--------------------------------------------------------------------------------------------*/
5+
6+ /// <reference path='../../../../src/vs/vscode.d.ts'/>
7+ /// <reference path='../../../../src/typings/mocha.d.ts'/>
8+ /// <reference path='../../../../extensions/node.d.ts'/>
9+ /// <reference path='../../../../extensions/lib.core.d.ts'/>
10+ /// <reference path='../../../../extensions/declares.d.ts'/>
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "module" : " commonjs" ,
4+ "target" : " es5" ,
5+ "outDir" : " ./out" ,
6+ "noLib" : true ,
7+ "sourceMap" : true
8+ },
9+ "exclude" : [
10+ " node_modules"
11+ ]
12+ }
You can’t perform that action at this time.
0 commit comments