utils

package
v0.1.0-next Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteOffsetToRuneIndex

func ByteOffsetToRuneIndex(line []byte, byteOffset int) int

ByteOffsetToRuneIndex converts a byte offset to a rune index in a byte slice

func CaptureNameToStyleName

func CaptureNameToStyleName(captureName string) string

CaptureNameToStyleName maps tree-sitter capture names to theme style names

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL