Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/update-vendored-files.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Update Vendored Files

on:
repository_dispatch:
types: rescrape
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
update-files:
name: "Update Files"
runs-on: ubuntu-latest
steps:
- name: Update Files
uses: actions/checkout@v2
- name: Run Download Script
run: |
./vendor.sh download
- name: Upload Updated Files
run: |
git config --global user.name "Go Tree Sitter Bot"
git config --global user.email "[email protected]"
git commit -am "Updated vendor files"
git push
Binary file modified lua/parser.c
Binary file not shown.
4 changes: 2 additions & 2 deletions lua/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ struct TSLanguage {
const uint16_t *small_parse_table;
const uint32_t *small_parse_table_map;
const TSParseActionEntry *parse_actions;
const char **symbol_names;
const char **field_names;
const char * const *symbol_names;
const char * const *field_names;
const TSFieldMapSlice *field_map_slices;
const TSFieldMapEntry *field_map_entries;
const TSSymbolMetadata *symbol_metadata;
Expand Down
4 changes: 2 additions & 2 deletions lua/scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ namespace {
}

// Try to make a short literal string with single quote
if (lexer->lookahead == '\'') {
if (valid_symbols[MULTI_STRING] && lexer->lookahead == '\'') {
lexer->result_symbol = MULTI_STRING;

// Consume first appearance of '\''
Expand Down Expand Up @@ -138,7 +138,7 @@ namespace {
}

// Try to make a short literal string with double quote
else if (lexer->lookahead == '"') {
else if (valid_symbols[MULTI_STRING] && lexer->lookahead == '"') {
lexer->result_symbol = MULTI_STRING;

// Consume first appearance of '"'
Expand Down