Comments (2)
Hey @axzn! Thanks for opening this issue! The Zig Style Guide is not official, and zls's warnings are just helpful indicators. zls has a naive implementation that simply checks for capitalization and underscores, so that is the cause of this issue. There's no real fix to this except adding a condition that considers underscores at the end of function names valid, even though that isn't in the style guide.
from zls.
Closed by #125
from zls.
Related Issues (20)
- `textDocument/rename` does not consider anonymous struct literals in return expressions
- Auto-completion and type function and variable not working with a pointer slice indexing HOT 2
- cInclude no longer showing added libraries. HOT 2
- Renaming a local variable should be instant.
- Autocomplete union(enum) variant
- C header path option HOT 2
- zls crashes in `instanceTypeVal`
- Lsp references (textDocument/references) took a long time in nvim lsp, even for simple file HOT 2
- Lsp 'textDocument/signatureHelp' doesn't work for the rightmost parenthesis of a function
- Enable completion and goto definition/declaration for a value which type is comptime struct
- fmt with autofix unused parameter on an empty function can result in invalid code HOT 1
- zls gets confused when block labels and variables have the same name, renames the wrong one
- Gray out `@as()` calls to make them less distracting HOT 2
- zls shows wrong variable type hint when RHS expression has function returning optional and orelse is used to return error set
- zls give incorrent inlay hints on parameters
- not compatible with zig 0.11.0 HOT 1
- Struct field hint is "Text" instead of "Field" when returning to a partially written field in a struct instantiation
- Crash in `analysis.getVariableSignature`
- Support subtype in inlay hint
- Hover not working on try in circle brackets HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zls.