Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scanner: fix indent error for line comment generated by vdoc #18422

Merged
merged 2 commits into from Jun 13, 2023

Conversation

yuyi98
Copy link
Member

@yuyi98 yuyi98 commented Jun 12, 2023

This PR fix indent error for line comment generated by vdoc.

before:

yuyi@yuyi-PC:~$ v doc time
module time

const (
        days_string        = 'MonTueWedThuFriSatSun'
        long_days          = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday',
                'Sunday']
        month_days         = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
        months_string      = 'JanFebMarAprMayJunJulAugSepOctNovDec'
        long_months        = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August',
                'September', 'October', 'November', 'December']
// The unsigned zero year for internal calculations.
// Must be 1 mod 400, and times before it will not compute correctly,
// but otherwise can be changed at will.
        absolute_zero_year = i64(-292277022399)
        seconds_per_minute = 60
        seconds_per_hour   = 60 * seconds_per_minute
        seconds_per_day    = 24 * seconds_per_hour
        seconds_per_week   = 7 * seconds_per_day
        days_per_400_years = days_in_year * 400 + 97
        days_per_100_years = days_in_year * 100 + 24
        days_per_4_years   = days_in_year * 4 + 1
        days_in_year       = 365
...

now:

PS D:\Vlang\v> v doc time
module time

const (
        days_string        = 'MonTueWedThuFriSatSun'
        long_days          = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday',
                'Sunday']
        month_days         = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
        months_string      = 'JanFebMarAprMayJunJulAugSepOctNovDec'
        long_months        = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August',
                'September', 'October', 'November', 'December']
        // The unsigned zero year for internal calculations.
        // Must be 1 mod 400, and times before it will not compute correctly,
        // but otherwise can be changed at will.
        absolute_zero_year = i64(-292277022399)
        seconds_per_minute = 60
        seconds_per_hour   = 60 * seconds_per_minute
        seconds_per_day    = 24 * seconds_per_hour
        seconds_per_week   = 7 * seconds_per_day
        days_per_400_years = days_in_year * 400 + 97
        days_per_100_years = days_in_year * 100 + 24
        days_per_4_years   = days_in_year * 4 + 1
        days_in_year       = 365
        days_before        = [

@medvednikov medvednikov merged commit 126fbe8 into vlang:master Jun 13, 2023
49 checks passed
@yuyi98 yuyi98 deleted the fix_vdoc_fmt_comments branch June 13, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants