Skip to content

Commit df87008

Browse files
committed
first commit
0 parents  commit df87008

File tree

9 files changed

+4334
-0
lines changed

9 files changed

+4334
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bower_components/
2+
node_modules/
3+
npm-debug.log
4+
todo.md
5+
vendor/

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- "4"
5+
env:
6+
- CXX=g++-4.8
7+
addons:
8+
apt:
9+
sources:
10+
- ubuntu-toolchain-r-test
11+
packages:
12+
- g++-4.8
13+
notifications:
14+
email: false

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# AppleScript for Visual Studio Code
2+
3+
[![The MIT License](https://img.shields.io/badge/license-MIT-orange.svg?style=flat-square)](http://opensource.org/licenses/MIT)
4+
[![GitHub](https://img.shields.io/github/release/idleberg/vscode-applescript.svg?style=flat-square)](https://github.com/idleberg/vscode-applescript/releases)
5+
[![Travis](https://img.shields.io/travis/idleberg/vscode-applescript.svg?style=flat-square)](https://travis-ci.org/idleberg/vscode-applescript)
6+
[![David](https://img.shields.io/david/dev/idleberg/vscode-applescript.svg?style=flat-square)](https://david-dm.org/idleberg/vscode-applescript#info=devDependencies)
7+
8+
Language syntax and snippets for AppleScript
9+
10+
## Installation
11+
12+
### Extension Marketplace
13+
14+
Launch Quick Open, paste the following command, and press <kbd>Enter</kbd>
15+
16+
`ext install applescript`
17+
18+
### GitHub
19+
20+
Change to your Visual Studio Code extensions directory:
21+
22+
```bash
23+
# Windows
24+
$ cd %USERPROFILE%\.vscode\extensions
25+
26+
# Linux & macOS
27+
$ cd ~/.vscode/extensions/
28+
```
29+
30+
Clone repository as `applescript`:
31+
32+
```bash
33+
$ git clone https://github.com/idleberg/vscode-applescript applescript
34+
```
35+
36+
## License
37+
38+
This work is dual-licensed under [The MIT License](https://opensource.org/licenses/MIT) and the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
39+
40+
## Donate
41+
42+
You are welcome support this project using [Flattr](https://flattr.com/submit/auto?user_id=idleberg&url=https://github.com/idleberg/vscode-applescript) or Bitcoin `17CXJuPsmhuTzFV2k4RKYwpEHVjskJktRd`

applescript.configuration.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment.
4+
"lineComment": "--",
5+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6+
"blockComment": [ "(*", "*)" ]
7+
},
8+
// symbols used as brackets
9+
"brackets": [
10+
["{", "}"],
11+
["[", "]"],
12+
["(", ")"]
13+
]
14+
}

gulpfile.js

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* sublimetext-gulpfile.js
3+
* https://github.com/idleberg/sublimetext-gulpfile.js
4+
*
5+
* Copyright (c) 2014-2016 Jan T. Sott
6+
* Licensed under the MIT license.
7+
*/
8+
9+
// Dependencies
10+
var gulp = require('gulp'),
11+
debug = require('gulp-debug'),
12+
jsonlint = require('gulp-json-lint');
13+
ymlVal = require('gulp-yaml-validate');
14+
xmlVal = require('gulp-xml-validator');
15+
16+
// Supported files
17+
var jsonFiles = [
18+
'!node_modules/**/*',
19+
'**/*.json',
20+
'**/*.JSON-sublime-syntax',
21+
'**/*.JSON-tmLanguage',
22+
'**/*.JSON-tmTheme',
23+
'**/*.sublime-build',
24+
'**/*.sublime-commands',
25+
'**/*.sublime-completions',
26+
'**/*.sublime-keymap',
27+
'**/*.sublime-macro',
28+
'**/*.sublime-menu',
29+
'**/*.sublime-settings',
30+
'**/*.sublime-theme',
31+
'messages.json'
32+
];
33+
34+
var xmlFiles = [
35+
'!node_modules/**/*',
36+
'**/*.plist',
37+
'**/*.PLIST-sublime-syntax',
38+
'**/*.PLIST-tmLanguage',
39+
'**/*.PLIST-tmTheme',
40+
'**/*.sublime-snippet',
41+
'**/*.tmCommand',
42+
'**/*.tmLanguage',
43+
'**/*.tmPreferences',
44+
'**/*.tmSnippet',
45+
'**/*.tmTheme',
46+
'**/*.xml',
47+
'*.bbcolors',
48+
'*.dvtcolortheme',
49+
'*.icls',
50+
'*.itermcolors',
51+
'*.terminal'
52+
];
53+
54+
var ymlFiles = [
55+
'!node_modules/**/*',
56+
'**/*.sublime-syntax',
57+
'**/*.YAML-tmLanguage',
58+
'**/*.YAML-tmTheme'
59+
];
60+
61+
// Available tasks
62+
gulp.task('lint', ['lint:json', 'lint:xml', 'lint:yml']);
63+
64+
// Lint JSON
65+
gulp.task('lint:json', function(){
66+
return gulp.src(jsonFiles)
67+
.pipe(debug({title: 'lint:json'}))
68+
.pipe(jsonlint())
69+
});
70+
71+
// Validate XML
72+
gulp.task('lint:xml', function() {
73+
return gulp.src(xmlFiles)
74+
.pipe(debug({title: 'lint:xml'}))
75+
.pipe(xmlVal());
76+
});
77+
78+
// Validate YAML
79+
gulp.task('lint:yml', function() {
80+
return gulp.src(ymlFiles)
81+
.pipe(debug({title: 'lint:yml'}))
82+
.pipe(ymlVal({ safe: true }));
83+
});

images/applescript.svg

Lines changed: 1 addition & 0 deletions
Loading

package.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"name": "applescript",
3+
"displayName": "AppleScript",
4+
"description": "Language syntax and snippets for AppleScript",
5+
"version": "0.0.0",
6+
"publisher": "idleberg",
7+
"license": "MIT",
8+
"author": {
9+
"name": "Jan T. Sott",
10+
"url": "http://github.com/idleberg"
11+
},
12+
"keywords": [
13+
"apple",
14+
"applescript",
15+
"macos"
16+
],
17+
"repository": {
18+
"type": "git",
19+
"url": "git+https://github.com/idleberg/vscode-applescript.git"
20+
},
21+
"bugs": {
22+
"url": "https://github.com/idleberg/vscode-applescript/issues"
23+
},
24+
"icon": "images/logo.svg",
25+
"engines": {
26+
"vscode": ">=1.0.0 <2.0.0"
27+
},
28+
"categories": [
29+
"Languages",
30+
"Snippets"
31+
],
32+
"contributes": {
33+
"languages": [
34+
{
35+
"id": "applescript",
36+
"aliases": [
37+
"AppleScript",
38+
"applescript"
39+
],
40+
"extensions": [
41+
".applescript"
42+
],
43+
"configuration": "./applescript.configuration.json"
44+
}
45+
],
46+
"grammars": [
47+
{
48+
"language": "applescript",
49+
"scopeName": "source.applescript",
50+
"path": "./syntaxes/applescript.tmLanguage"
51+
}
52+
],
53+
"snippets": [
54+
{
55+
"language": "applescript",
56+
"path": "./snippets/applescript.json"
57+
}
58+
]
59+
},
60+
"scripts": {
61+
"postinstall": "node ./node_modules/vscode/bin/install",
62+
"test": "gulp lint"
63+
},
64+
"devDependencies": {
65+
"gulp": "^3.9.1",
66+
"gulp-debug": "^2.1.2",
67+
"gulp-json-lint": "^0.1.0",
68+
"gulp-xml-validator": "^0.1.1",
69+
"gulp-yaml-validate": "^1.0.2",
70+
"vscode": "^0.11.0"
71+
}
72+
}

0 commit comments

Comments
 (0)