pub struct NginxLanguage {
pub allow_extensions: bool,
pub strict_mode: bool,
}Expand description
Configuration for the Nginx language support.
Fields§
§allow_extensions: boolWhether to allow extended directives.
strict_mode: boolWhether to enable strict mode.
Implementations§
Source§impl NginxLanguage
impl NginxLanguage
Trait Implementations§
Source§impl<'config> Builder<NginxLanguage> for NginxBuilder<'config>
impl<'config> Builder<NginxLanguage> for NginxBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<NginxLanguage>,
) -> OakDiagnostics<NginxRoot>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<NginxLanguage>, ) -> OakDiagnostics<NginxRoot>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for NginxLanguage
impl Clone for NginxLanguage
Source§fn clone(&self) -> NginxLanguage
fn clone(&self) -> NginxLanguage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NginxLanguage
impl Debug for NginxLanguage
Source§impl Default for NginxLanguage
impl Default for NginxLanguage
Source§impl<'de> Deserialize<'de> for NginxLanguage
impl<'de> Deserialize<'de> for NginxLanguage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for NginxLanguage
impl Hash for NginxLanguage
Source§impl HoverProvider<NginxLanguage> for NginxHoverProvider
Available on crate feature lsp only.
impl HoverProvider<NginxLanguage> for NginxHoverProvider
Available on crate feature
lsp only.Source§impl Language for NginxLanguage
impl Language for NginxLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = NginxTokenType
type TokenType = NginxTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = NginxElementType
type ElementType = NginxElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<NginxLanguage> for NginxLexer<'config>
impl<'config> Lexer<NginxLanguage> for NginxLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<NginxLanguage>,
) -> LexOutput<NginxLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<NginxLanguage>, ) -> LexOutput<NginxLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl<'a> Parser<NginxLanguage> for NginxParser<'a>
impl<'a> Parser<NginxLanguage> for NginxParser<'a>
Source§fn parse<'b, S: Source + ?Sized>(
&self,
text: &'b S,
edits: &[TextEdit],
cache: &'b mut impl ParseCache<NginxLanguage>,
) -> ParseOutput<'b, NginxLanguage>
fn parse<'b, S: Source + ?Sized>( &self, text: &'b S, edits: &[TextEdit], cache: &'b mut impl ParseCache<NginxLanguage>, ) -> ParseOutput<'b, NginxLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Source§impl PartialEq for NginxLanguage
impl PartialEq for NginxLanguage
Source§impl Serialize for NginxLanguage
impl Serialize for NginxLanguage
impl Copy for NginxLanguage
impl Eq for NginxLanguage
impl StructuralPartialEq for NginxLanguage
Auto Trait Implementations§
impl Freeze for NginxLanguage
impl RefUnwindSafe for NginxLanguage
impl Send for NginxLanguage
impl Sync for NginxLanguage
impl Unpin for NginxLanguage
impl UnsafeUnpin for NginxLanguage
impl UnwindSafe for NginxLanguage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more