Skip to content

Commit

Permalink
update: Fix a few LSP issues
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Aug 12, 2024
1 parent 0a285a1 commit c6c4872
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions flamingo/runtime/unicode/umachine.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
/* which are contained in the platform-specific file platform.h */
/*==========================================================================*/

#include "unicode/ptypes.h" /* platform.h is included in ptypes.h */
#include "ptypes.h" /* platform.h is included in ptypes.h */

/*
* ANSI C headers:
Expand Down Expand Up @@ -443,6 +443,6 @@ typedef int32_t UChar32;
*/
#define U_SENTINEL (-1)

#include "unicode/urename.h"
#include "urename.h"

#endif
4 changes: 2 additions & 2 deletions flamingo/runtime/unicode/utf16.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
#ifndef __UTF16_H__
#define __UTF16_H__

#include "unicode/umachine.h"
#include "umachine.h"
#ifndef __UTF_H__
# include "unicode/utf.h"
# include "utf.h"
#endif

/* single-code point definitions -------------------------------------------- */
Expand Down
4 changes: 2 additions & 2 deletions flamingo/runtime/unicode/utf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
#ifndef __UTF8_H__
#define __UTF8_H__

#include "unicode/umachine.h"
#include "umachine.h"
#ifndef __UTF_H__
# include "unicode/utf.h"
# include "utf.h"
#endif

/* internal definitions ----------------------------------------------------- */
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ mv tree-sitter/lib/src/* flamingo/runtime

rm -rf tree-sitter

find flamingo/runtime/unicode -name "*.h" -exec sed -i '' 's/"unicode\/\(.*\)\.h"/"\1.h"/g' {} ';'
sed -i '' 's/cstdint/stdint.h/g' flamingo/runtime/unicode/umachine.h

# Update tree-sitter-flamingo (i.e. src/parser.c and src/tree_sitter/parser.h).

rm -rf tree-sitter-flamingo 2>/dev/null || true
Expand Down

0 comments on commit c6c4872

Please sign in to comment.