mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Add languages/javascript
This commit is contained in:
parent
03056dd611
commit
09dfd79723
2
languages/javascript/Setup.hs
Normal file
2
languages/javascript/Setup.hs
Normal file
@ -0,0 +1,2 @@
|
||||
import Distribution.Simple
|
||||
main = defaultMain
|
24
languages/javascript/javascript.cabal
Normal file
24
languages/javascript/javascript.cabal
Normal file
@ -0,0 +1,24 @@
|
||||
name: javascript
|
||||
version: 0.1.0
|
||||
synopsis: tree-sitter javascript language bindings
|
||||
description: Please see README.md
|
||||
homepage: https://github.com/github/semantic-diff#readme
|
||||
author: semantic-code
|
||||
maintainer: tclem@github.com
|
||||
copyright: 2017 GitHub
|
||||
category: Web
|
||||
build-type: Simple
|
||||
-- extra-source-files:
|
||||
cabal-version: >=1.10
|
||||
|
||||
library
|
||||
hs-source-dirs: src
|
||||
exposed-modules: Text.Parser.TreeSitter.JavaScript
|
||||
build-depends: base >= 4.7 && < 5
|
||||
, haskell-tree-sitter
|
||||
default-language: Haskell2010
|
||||
c-sources: vendor/tree-sitter-javascript/src/parser.c
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/github/semantic-diff
|
@ -0,0 +1,6 @@
|
||||
module Text.Parser.TreeSitter.JavaScript where
|
||||
|
||||
import Text.Parser.TreeSitter
|
||||
import Foreign.Ptr
|
||||
|
||||
foreign import ccall "vendor/tree-sitter-javascript/src/parser.c ts_language_javascript" ts_language_javascript :: Ptr Language
|
1
languages/javascript/vendor/tree-sitter-javascript
vendored
Submodule
1
languages/javascript/vendor/tree-sitter-javascript
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 97458010e5ab4b3f178998078c708ef7e9e910d1
|
Loading…
Reference in New Issue
Block a user