This repository was archived by the owner on Jul 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +24
-19
lines changed
Expand file tree Collapse file tree 7 files changed +24
-19
lines changed Original file line number Diff line number Diff line change 11node_modules
22* .swp
33build
4+ * .gyp
45
56# see https://stackoverflow.com/a/5534865
67! src /
Original file line number Diff line number Diff line change 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
512Parse the [ big test file from EditorSyntax] ( https://github.com/PowerShell/EditorSyntax/blob/master/examples/TheBigTestFile.ps1 ) completely.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+
16param (
27 [Parameter ()]
38 [switch ]
Original file line number Diff line number Diff line change 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+
16const PREC = {
27 COMMENT : 1 ,
38 STRING : 2 ,
Original file line number Diff line number Diff line change 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+
16try {
27 module . exports = require ( "./build/Release/tree_sitter_PowerShell_binding" ) ;
38} catch ( error ) {
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments