codesearch 0.1.9

A fast, intelligent CLI tool with multiple search modes (regex, fuzzy, semantic), code analysis, and dead code detection for popular programming languages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Language Type Definitions
//!
//! Data structures for language metadata.

/// Supported programming language with its metadata
#[derive(Debug, Clone)]
pub struct LanguageInfo {
    pub name: &'static str,
    pub extensions: &'static [&'static str],
    pub function_patterns: &'static [&'static str],
    pub class_patterns: &'static [&'static str],
    pub comment_patterns: &'static [&'static str],
    #[allow(dead_code)]
    pub import_patterns: &'static [&'static str],
}