Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 1ac0905

Browse files
committed
Add copyrights
1 parent 7bb93c3 commit 1ac0905

File tree

7 files changed

+24
-19
lines changed

7 files changed

+24
-19
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
node_modules
22
*.swp
33
build
4+
*.gyp
45

56
# see https://stackoverflow.com/a/5534865
67
!src/

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# PowerShell support for tree-sitter
22

3+
A [tree-sitter](http://tree-sitter.github.io/tree-sitter/)
4+
implemenation for [PowerShell](https://github.com/PowerShell/PowerShell).
5+
6+
## License
7+
8+
See [LICENSE](LICENSE).
9+
310
## Initial goal
411

512
Parse the [big test file from EditorSyntax](https://github.com/PowerShell/EditorSyntax/blob/master/examples/TheBigTestFile.ps1) completely.

binding.gyp

Lines changed: 0 additions & 18 deletions
This file was deleted.

build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# ------------------------------------------------------------------------------------------------------
2+
# Copyright (C) Microsoft. All rights reserved.
3+
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
# -------------------------------------------------------------------------------------------------------
5+
16
param(
27
[Parameter()]
38
[switch]

grammar.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
const PREC = {
27
COMMENT: 1,
38
STRING: 2,

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
try {
27
module.exports = require("./build/Release/tree_sitter_PowerShell_binding");
38
} catch (error) {

src/scanner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License.
2+
// Licensed under the MIT License. See the LICENSE file in the project root for full license information.
33

44
#include <tree_sitter/parser.h>
55
#include <wctype.h>

0 commit comments

Comments
 (0)